Select ALL records in datagrid

Dear programmers,

I can't select all of my records in a datagrid, only the visible ones, how can I select ALL of the records in the datagrid ?
For the visible ones I use the code:

For i = 0 To frmPersonen.DataGrid1.VisibleRows - 1
frmPersonen.DataGrid1.SelBookmarks.Add frmPersonen.DataGrid1.RowBookmark(i)
Next i

Can someone give me a helping hand ?

With regards
Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!