beekay
18 Jan 2007, 2:32 AM
Hi,
I am trying to load a default grid with data based on selections from a dropdown box(Default dataModel). Everything seems to work fine but then each time a new option is chosen from the dropdown box the rows get appended to the existing rows in the grid. I want a fresh grid with only appropriate rows corresponding to the selected option.
I've tried getting the rowcount from the datamodel, loop through it and delete it one by one and add afresh. Even that doesnt seem to work. Whats the right way to achieve this?
Thanks
I am trying to load a default grid with data based on selections from a dropdown box(Default dataModel). Everything seems to work fine but then each time a new option is chosen from the dropdown box the rows get appended to the existing rows in the grid. I want a fresh grid with only appropriate rows corresponding to the selected option.
I've tried getting the rowcount from the datamodel, loop through it and delete it one by one and add afresh. Even that doesnt seem to work. Whats the right way to achieve this?
Thanks