Connecting Tech Pros Worldwide Help | Site Map

Updating Dynamic columns in GridView

Newbie
 
Join Date: May 2009
Posts: 1
#1: May 3 '09
Hi
I have a problem with my ASP.Net Gridview Control.
I have a GridView that has a variable number of columns.
First two columns are permanent.
Remaining CheckBox columns that contain TemplateFields are dependant on the number of rows of another datatable.
I have also managed to show checkboxes in the datagrid on the basis of another data table's rows.
But problem is this:
1) When I click the Edit button (programmatically added) first time, the checkboxes disappear as well as the gridviews mode is not changed to edit.
2) When I click second time on the edit button, the mode is changed to EditMode but checkbox columns are still empty.

Can anyone explain?
I have also written this.GridVide1.EditIndex=e.NewIndex; in the RowEditing event of the gridview.
Pls help me
Regards and thanx in advance
prabirchoudhury's Avatar
Familiar Sight
 
Join Date: May 2009
Location: Wellington, New Zealand
Posts: 152
#2: May 6 '09

re: Updating Dynamic columns in GridView


should nt have any problem if you use object databinding and enable edit mode....


read more



<Links snipped>
Reply


Similar ASP.NET bytes