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 Delete Row

Status
Not open for further replies.

McGregor80

Programmer
May 15, 2005
13
PL
How to delete whole row from StringGrid. I meen not only the text but also cells.

I tried like this:
StringGrid->Rows[2]->Delete(some index-for what?);

and i got message : Program couldn't insert or delete row (something like that).

Is it possible to delete rows anywhay? Maybe it will be better to use ListView with four columns(values)?

Thanks
 
Look at Also there was are some articles in BCB Journal but most are newer articles that require a subscription.

James P. Cottingham
-----------------------------------------
[sup]To determine how long it will take to write and debug a program, take your best estimate, multiply that by two, add one, and convert to the next higher units.[/sup]
 
you can shift the rows up starting from the row you are deleting as the link above shows. be warned though that if you dont explicitly empty the cells in the last row also, before you add a row to the string grid, the original text for that row will magically reappear.

tomcruz.net
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top