0
votes

I'm using : 1.A Gridview 2.SqlDataSource to bind set the table data information to gridview.

I want to get from the edited row in gridview the value of a cell from database of the same row.

thanks

2
okay,look again at my question please - Inaa Inzii
Looks like there is some trigger on ur table - Teja
but now?I just want to insert the value of the edited cell in the database in the same row , so if I edit from ROW no9. the value from a column called: age , the value will be updated in the database in the row no9. cell age - Inaa Inzii
It sounds like you should read up more on GridView msdn.microsoft.com/en-us/library/ms972948.aspx - Har
sorry , I'm tired look again at my question please , that's what I want - Inaa Inzii

2 Answers

0
votes

In that case, simply on the edit click, grab the id field of that row (maybe it is hidden) and bind another gridview by that same id. I am assuming these tables join by id.

0
votes

Another option you can use is DataKeyNames Gridview property. Check GridView.DataKeyNames Property