H
hazz
ICollection CreateDataSource() {
dt.Columns.Add(new DataColumn("ReportInclude", typeof(Boolean)));
for (int i=0; i<=10; i++) { dr = dt.NewRow(); dr[0] = 0;
dt.Rows.Add(dr); }
void Page_Load(Object sender, EventArgs e)
{ ItemsGrid.DataSource = CreateDataSource();
void Item_Bound(Object sender, DataGridItemEventArgs e)
{
// Use the ItemDataBound event to customize the DataGrid control.
// The ItemDataBound event allows you to access the data before
// the item is displayed in the control.
????? How do I convert the boolean value to a checkbox. I don't want
to see true/false, I want to see a checkbox, checked or not.
Thank you,
-Greg
dt.Columns.Add(new DataColumn("ReportInclude", typeof(Boolean)));
for (int i=0; i<=10; i++) { dr = dt.NewRow(); dr[0] = 0;
dt.Rows.Add(dr); }
void Page_Load(Object sender, EventArgs e)
{ ItemsGrid.DataSource = CreateDataSource();
void Item_Bound(Object sender, DataGridItemEventArgs e)
{
// Use the ItemDataBound event to customize the DataGrid control.
// The ItemDataBound event allows you to access the data before
// the item is displayed in the control.
????? How do I convert the boolean value to a checkbox. I don't want
to see true/false, I want to see a checkbox, checked or not.
Thank you,
-Greg