Home All Groups Group Topic Archive Search About

I need to get row data from GridView on .NET 2.0

Author
20 Mar 2006 10:51 PM
Cristian
I´m using a GridView to show some data from a database. I would like to show
in another control the data from a row I selected on the grid view. I´m using
the event SelectedIndexChanged but I can´t get the data directly. Please,
some one help me...

Best regards

Cristian

Author
21 Mar 2006 4:59 AM
Phillip Williams
The SelectedRow.Cells collection contains all of the data values that are
displayed on the selected row:
http://msdn2.microsoft.com/en-us/library/system.web.ui.webcontrols.gridview.selectedindexchanged(VS.80).aspx

Show quoteHide quote
"Cristian" wrote:

> I´m using a GridView to show some data from a database. I would like to show
> in another control the data from a row I selected on the grid view. I´m using
> the event SelectedIndexChanged but I can´t get the data directly. Please,
> some one help me...
>
> Best regards
>
> Cristian