DevExpress GridControl (How do you get the datarow?)

DeltaWolf7

Well-known member
Joined
Jan 21, 2006
Messages
47
Programming Experience
Beginner
Hi,

I have just found out about the DevExpress XtraGrid control, thanks to the wonderful review on this site.
I have been playing now for a few hours and I have managed to fill the gird quite easy, but I cant get the datarow that I have selected.

How do you get a datarow from a GridControl?


Thanks
 
Oh god, many thanks. I can't believe I missed those tutorials. Doh!

I came up with this as a test and it works perfectly.


VB.NET:
[SIZE=2][COLOR=#0000ff]
Dim[/COLOR][/SIZE][SIZE=2] row [/SIZE][SIZE=2][COLOR=#0000ff]As[/COLOR][/SIZE][SIZE=2] System.Data.DataRow = GridView1.GetDataRow(GridView1.FocusedRowHandle)
MsgBox(row.Item(1))
[/SIZE]


Thanks
 
Back
Top