Gridview in asp.net & c#

Mar 14 2009 11:57 AM

How to retrieve column values from selected row of a gridview control in asp.net ?

i first bind gridview with the dataset

<code>

gridview1.datasource=ds.tables[0];

gridview1.databind();

//now i want that when user select any row of gridview1,the values in particular columns of that row will be inserted in  table of my database.

what would i have to do for that so that i can get those column values from gridview?

 

 


Answers (1)