I have a datagrid and i want programmaticly to change the value of the
CurrentRow
If I say
MyDG.Rows(i).selected=True
then The row backcolor gets blue but the Row is not selected
(you can stil see the small black arrow on the left pointing to the
previus Row)
How can I make this arrow point to the row i want to select ?
Thanks
Savvas Christodoulou
savv...@nodalsoft.com.cy
RobinS.
----------------
<savv...@nodalsoft.com.cy> wrote in message
news:4fd82f6d-938f-4e0a...@i7g2000prf.googlegroups.com...
Yes , sorry about that ... its a DataGridView,
Dim myBindingSource as New BindingSource()
myBindingSource.DataSource = myDataSet
myDataGridView.DataSource = myBindingSource
myBindingSource.Position = 24
The BindingSource also has MoveNext, MovePrevious, MoveFirst, and MoveNext
methods that you can use to change the current position.
Does that help at all?
RobinS.
-----------------------------
<savv...@nodalsoft.com.cy> wrote in message
news:04434e03-2873-4dc5...@l32g2000hse.googlegroups.com...
+ I found another way to do it
DataGridView1.CurrentCell = DataGridView1.Rows(i).Cells(4)
I= the row u want to select
4 = a visible cell on ur datagridview
Thank You