DataGrid Retrieval?

  • Thread starter Thread starter Supramanian Murugesan
  • Start date Start date
S

Supramanian Murugesan

Hi,

I have a datagrid filled by some rows from the db. When I click a particular
row in the datagrid I should able to insert the selected rows value to a
DataRow / Array. Is there anyway of doing this?

thanks in advance,
SP.Murugesan.
 
the DataRow: YourDataGrid.Item[row]
the selected index of the row is:
YourDataGrid.SelectedIndex

you can also do a foreach with this:
YourDataGrid.Item[row].Cells[column]
 
Back
Top