stringgrid-insert row
hi
i'm a beginner with visual C++ and i'm havin a project with StringGrids and i want to add a row when i write at the last cell and i press the enter key!
all i could write is this! it works whenever i press enter but i want only when i'm at the last cell
char keyString[25];
keyString[0] = Key;
if(StringGrid1->Cells[ 8 ][StringGrid1->Row]==StringGrid1->Cells[ 8 ][StringGrid1->RowCount])
if(Key=='\r')
InsertRow(StringGrid1, StringGrid1->RowCount);
could somebody help me???
|