Hi,
I have this code placed in a button(btnNext)
The thing is that if I move to the next row the thingi on the left(arrow-rowheader) doesn't move also, hence I can move only one row forward.
How can I get the whole row moving forward, backward, to the end?
To do it with a bindingsource is easy(position +/- x), but now I have set a dataview object as a datasource for the gridview.
Thanks, Richard
I have this code placed in a button(btnNext)
VB.NET:
[SIZE=2][COLOR=#0000ff]Dim[/COLOR][/SIZE][SIZE=2] idx [/SIZE][SIZE=2][COLOR=#0000ff]As[/COLOR][/SIZE][SIZE=2] Int32 = [/SIZE][SIZE=2][COLOR=#0000ff]Me[/COLOR][/SIZE][SIZE=2].dgvJobs.CurrentRow.Index + 1[/SIZE]
[SIZE=2][COLOR=#0000ff]Me[/COLOR][/SIZE][SIZE=2].dgvJobs.Rows(idx).Selected = [/SIZE][SIZE=2][COLOR=#0000ff]True[/COLOR][/SIZE]
The thing is that if I move to the next row the thingi on the left(arrow-rowheader) doesn't move also, hence I can move only one row forward.
How can I get the whole row moving forward, backward, to the end?
To do it with a bindingsource is easy(position +/- x), but now I have set a dataview object as a datasource for the gridview.
Thanks, Richard
Last edited: