I have a gridview with a datasource bound to a binding list of custom objects. I have added a checkbox column with the following code:
The column shows up in the gridview however there are no checkbox's in the column.
AutoGenerateColumns is false and AutoSizeColumns is set to AutoFill.
I am using version 2009.3.9.1203.
Thanks,
GridViewCheckBoxColumn checkBoxColumn =
new
GridViewCheckBoxColumn();
checkBoxColumn.DataType =
typeof
(
int
);
checkBoxColumn.UniqueName =
"DiscontinuedColumn"
;
checkBoxColumn.FieldName =
"Discontinued"
;
checkBoxColumn.HeaderText =
"Discontinued"
;
conversionTypesGridView.Columns.Add(checkBoxColumn);
The column shows up in the gridview however there are no checkbox's in the column.
AutoGenerateColumns is false and AutoSizeColumns is set to AutoFill.
I am using version 2009.3.9.1203.
Thanks,