Posted on: 6/25/2015 11:50:26 AM | Views : 670

hi all
i am trying to update the data in  the database through gridview
in gridview i hava added edit and delete buttons
and the data from database i displaying in the grid dynamically
i am not mentioning the column names
and if i want to update the data in the gridview, how can i do that with out mentioning the column names.
iam using only one grid  and one dropdown in my page, when user select the value in the dropdown(table names) then data related to dropdown value will be displayed in the grid.
in one table there are 3 columns and in one table thera are 4 columns
so i dont want to mention the column names.
plz tell me how to update the data in the database using grid view without mentioning the column names
iam getting the header text by using the below line
for (int i = 1; i < GridView2.Rows[0].Cells.Count; i++) { HiddenField1.Value += GridView2.HeaderRo ...

Go to the complete details ...