hii...
:-/
can u plz get me out of the problem..!!!!1
m using visual studio 2005.
whenever i click an update button to update values of a particular column of a gridview, all the columns gets updated with the same values.
eg. if the 2nd column of 1st row with s.no. 1 is updated with values watch,50.,,,rest of the 2nd columns of rows with s.no.2,3,4,5 etc. also gets updated with these same values.
m using----
cmd.Parameters["s_no"].Value = ItemsGrid.DataKeys[(int)e.Item.ItemIndex];
cmd.Parameters["@s_no"].Value = ((TextBox)e.Item.Cells[0].Controls[0]).Text;
cmd.Parameters["@type"].Value = ((TextBox)e.Item.Cells[1].Controls[1]).Text;
cmd.Parameters["@item"].Value = ((TextBox)e.Item.Cells[2].Controls[1]).Text;