B
Brett Romero
I convert a collection to DataSet, reference the first table and throw
that into a DataTable. The DataTable is used as a DataSource for a
DataGrid. The DataGrid has an associated GridTableSyle.
I use the RowChanged() event on a DataTable to capture changed column
data. I get their values and update the collection without errors:
Person.addresscollection[0].IsMailing =
Convert.ToBoolean(e.Row["IsMailing"].ToString());
When the grid has finished initially loading, the IsMailing boolean
column is grayed and checked. I click it once to give focus. Then
click again to uncheck. It also ungreys on the second click. Once I
move off this column, it grays and checks itself. The value for the
above collection field is always false. That is the value coming off
the grid or the above conversion.
I'm setting readonly to false for the boolean column when setting up
the gridtablestyle. Any ideas why the boolean is acting this way in
the grid?
Thanks,
Brett
that into a DataTable. The DataTable is used as a DataSource for a
DataGrid. The DataGrid has an associated GridTableSyle.
I use the RowChanged() event on a DataTable to capture changed column
data. I get their values and update the collection without errors:
Person.addresscollection[0].IsMailing =
Convert.ToBoolean(e.Row["IsMailing"].ToString());
When the grid has finished initially loading, the IsMailing boolean
column is grayed and checked. I click it once to give focus. Then
click again to uncheck. It also ungreys on the second click. Once I
move off this column, it grays and checks itself. The value for the
above collection field is always false. That is the value coming off
the grid or the above conversion.
I'm setting readonly to false for the boolean column when setting up
the gridtablestyle. Any ideas why the boolean is acting this way in
the grid?
Thanks,
Brett