SpGridView , Get Selected Row Data

Posted by sbtahir on Stack Overflow See other posts from Stack Overflow or by sbtahir
Published on 2010-04-16T13:18:54Z Indexed on 2010/04/16 13:23 UTC
Read the original article Hit count: 773

Filed under:
|

I m using SPGridView , i want to fill textboxes with the SPGridview Selected Row Data on a button click event.

Does Anyone know how to do that?

my code:

txtCode= SPGridView.SelectedRow.Cell[1].Text;

but on debugging it shows Cell[1] is empty but it showing data in the Grid.

Any Idea?

Thanks

SAAD

© Stack Overflow or respective owner

Related posts about sharepoint

Related posts about wss-3.0