Retreiving DataGrid Values in VB.Net

  • Thread starter Thread starter Dale
  • Start date Start date
D

Dale

Good Morning,

I have a gatagrid that the user can only select the
entire row in. My question is once the user has select
the row how do I get the value of the first column in
that selected row.

Thanks in advance!

Dale
 
Dale,

Dim Col as Integer = 2 'Arbitary column number
MsgBox(dg1.Item(dg1.CurrentRowIndex, Col ))

Regards - OHM#

Good Morning,

I have a gatagrid that the user can only select the
entire row in. My question is once the user has select
the row how do I get the value of the first column in
that selected row.

Thanks in advance!

Dale

Regards - OHM# (e-mail address removed)
 
Back
Top