DataGrid Checkbox column at run time
ASP.NET
1
Posts
1
Posters
0
Views
1
Watching
-
I need to add a checkbox column to a datagrid under certain conditions. The datagrid is template bound and due to too much going on at itemBinding I need to create and add the column when I data bind. Thing is the new column appears to added to alternate rows to the template rows, I think.... anyone got any ideas, or should I just give up and dynamically create all the required columns.
If (amActionMode = ActionMode.Review) Then Dim dc As New BoundColumn dc.HeaderText = "reviewed" dgColumns.Columns.Add(dc) End If dgItems.DataBind()
cheers