Gridview dynamic in edit mode
-
Hi, I have a gridview which I dont know the number of columns it is created by a dynamic query and AutoGenerateColumns = true. I need to put the columns of the gridview in editable mode except the first one for insert the data typed into the database. Thanks.
-
Hi, I have a gridview which I dont know the number of columns it is created by a dynamic query and AutoGenerateColumns = true. I need to put the columns of the gridview in editable mode except the first one for insert the data typed into the database. Thanks.
amina89 wrote:
I need to put the columns of the gridview in editable mode except the first one for insert the data typed into the database.
Are you trying to ask that you want first row normal and rest of them in editable mode? If so, probably you need to use the RowDataBound event where trap the first row and show it as is and rest of the rows in a Edit mode.
-
amina89 wrote:
I need to put the columns of the gridview in editable mode except the first one for insert the data typed into the database.
Are you trying to ask that you want first row normal and rest of them in editable mode? If so, probably you need to use the RowDataBound event where trap the first row and show it as is and rest of the rows in a Edit mode.
Hi, I want to use a gridview to insert student grades for a module (total area unknown) for this i use a dynamic query and I display the gridview Number students ___subject 1____subject2 ....( subjects of a module) but I can not put the gridview in edit mode ,how do that? I searched on google but most of the gridview it already knows the number of column so we do not use autogenratecolumn=true which facilitates edit mode and insert the gridview data in the database. Thanks.