Forum Moderators: open

Message Too Old, No Replies

Select Content of Datagrid

How to retrieve the data from a specific cell in a datagrid

         

djm2

1:27 pm on Mar 23, 2006 (gmt 0)

10+ Year Member



Hi All,

I'm very new to .Net and datagrids. Please help. I would like to select a row in a datagrid, then when SelectedIndexChanged is called retrieve the value of one cell from the selected row. Is this possible?

Any help appreciated,

d

FireBrigade

4:47 pm on Mar 25, 2006 (gmt 0)

10+ Year Member



Hi djm2,

Yes, you can.
You have to find the control using the findcontrol property of the datagrid, cast it to the right control type and then you can access it's properties.

Regards,
FireBrigade