[Gambas-user] Gridview delete row

Benoit Minisini gambas at ...1...
Mon Apr 30 23:58:16 CEST 2007


On lundi 30 avril 2007, Steven Lobbezoo wrote:
> Hi,
>
> Maybe a stupid question, but :
> What's the best and simplest way to remove a row from a grid.
> I could move all rows above the selected one, and then delete the last one
> by setting the count one less, but that seems complicated.
>
> If someone knows a better solution ??
> Thanks,
> Steven
>

This is a method to implement. Something like GridView.Row[XXX].Delete()

At the moment, the better way is to not store anything in the GridView, to 
always use the Data event, and to store the GridView data in its own 
structure that you can manipulate as you like.

Regards,

-- 
Benoit Minisini




More information about the User mailing list