SelectedItem in datagrid

Jun 18, 2009 at 5:44 PM

how can i read with the datagrid.SelectedItem de value of CustomID?

 

 

 

 

<font size="2" color="#0000ff"><font size="2" color="#0000ff">

Dim

</font></font><font size="2" color="#0000ff">

 

</font>

 

strConnectie As String =

"Provider=Microsoft.Jet.OLEDB.4.0;Data Source= C:\PrimaFact QS\bin\Facts.Net.mdb;Persist Security Info=False;"

<font size="2">

 

</font>

 

Dim oledbcon As New

OleDbConnection(strConnectie)<font size="2">

 

</font>

 

Private com As New OleDb.OleDbCommand("Select CustomID,CustomName From Customers"

, oledbcon)<font size="2">

 

</font>

 

Private adapter As New

OleDb.OleDbDataAdapter(com)<font size="2">

 

</font>

 

Dim dt As

DataTable