TStringGrid::Cells[int][int]

Hi all,

I am having problems with some code.

TStringGrid ShareStringGrid; /*Populated with data*/

/*--- snip ----------*/
1:   const int SHAREID = 0;
2:   const int NAME = 1;
3:
4:   for (int row = 1; row != 100; row++){
5:      str = ShareStringGrid->Cells[NAME][row]; /*2nd col, 2nd row*/
6:
7:      /*Don't care about case check equality*/
8:
str.AnsiCompareIC(CurrentShare.Name)){
9:
10:        AnsiString val = ShareStringGrid->Cells[SHAREID][row];
11:        current = val.ToInt();
12:     }
13:  }
14:
/*--- /snip ---------*/

for some reason MyStringGrid->[i][j]; doesn't appear to be
returning an AnsiString. All I get is a NULL assignment.

Could anybody shed any light on this for me as I have been
trying to sort this out for the better part of the day now.

Please help I am going mad!

-Mike M