Extracting data from datagrids.

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
 
K

Ken Tucker [MVP]

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


Top