How to retrieve column values from selected row of a gridview control in asp.net ?
i first bind gridview with the dataset
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?
Kirtan PatelPosted Mar 15, 2009, 1:35 AM
GridView1.SelectedRow.Cells[0].Text
Change the Cell Index ie ( 0,1,2,3,4,5,6) to Get desire Value of Selected Row
Happy Coding :)