![]() |
Remove all rows |
Post Reply ![]() |
Author | |
baerten ![]() Newbie ![]() ![]() Joined: 28 September 2006 Location: Germany Status: Offline Points: 10 |
![]() ![]() ![]() ![]() ![]() Posted: 12 October 2006 at 4:51am |
Hi everybody
//Grid.GetRows()->Clear(); Grid.GetRecords()->RemoveAll(); for(int i=0; i<CustomerList->Count; i++) { Grid.AddRecord(CustomerList->InternalList); } Grid.RedrawControl(); Grid.Populate(); I like to remove all rows of the Grid before inserting new ones. At the beginning, when the grid is clear, all works If the grid has already rows, so it removes all rows & records ( verified with GetCount ) But at Grid.Populate(); it has an error Thanks |
|
![]() |
|
sserge ![]() Moderator Group ![]() Joined: 01 December 2004 Status: Offline Points: 1297 |
![]() ![]() ![]() ![]() ![]() |
Hi,
In your code, try calling Populate twice:
-- WBR, Serge |
|
![]() |
Post Reply ![]() |
|
Tweet
|
Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |