Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

StringGrid

Status
Not open for further replies.

seitan

Programmer
Mar 10, 2003
3
LT
How to delete a selected row in a string grid?
i do not know exact sintax:
StringGrid1->Rows(StringGrid1->Row)->Delete(???);
I do not understand what kind of integer must be in Delete()
application throws exeption cannot delete/insert rows in grid...

plesae help!
 
if(StringGrid1->RowCount>2)
for(int i=StringGrid1->Row;
i<StringGrid1->RowCount;
++i)
StringGrid1->Rows->Assign(StringGrid1->Rows[i+1]);

StringGrid1->RowCount--;
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top