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)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top