Extracting data from datagrids.

  • Thread starter Thread starter ElenaR
  • Start date Start date
E

ElenaR

I am trying to get data from certain columns of a selected
row in a Datagrid.

In VB6, I simply wrote:

strVariable = DataGrid1.Columns(Index).Value

what is the equivalent in .NET?

Thanks,
Elena
 
Hi,

Dim strValue As String = DataGrid1.Item(DataGrid1.CurrentRowIndex, 1)

Ken
 
THANK YOU, KEN!
-----Original Message-----
Hi,

Dim strValue As String = DataGrid1.Item (DataGrid1.CurrentRowIndex, 1)

Ken

-----------------------




.
 

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

Similar Threads

Rows in Datagrid 12
Accessing Data in DataGrid 1
datagrid 1
Reading DataGrid values directly 4
DataGrid question 1
Array of Datagrids troubles 4
Getting Data from the DataGrid. 3
Selecting row from DataGrid 13

Back
Top