DataGridColumnStyle Class
C#
1
Posts
1
Posters
0
Views
1
Watching
-
I have this class that I have derived from DataGridColumnStyle and all is working well apart from one issue. In my test program I have created a DataSet at runtime and created a table with 3 columns, the table is set to the datasource for the grid. One of the columns is set to readonly. Now my problem is that I can't seem to find anyway to detect this from within my derived DataGridColumnStyle class. The DataGridTextBoxColumn class seems to manage this feat somehow. For me I just get an exception thrown from DataGrid.CommitEdit() telling me that an object reference is not set to an object when I try to commit the change. Anyone got any ideas on how I could dected the the DataSet.DataTable.DataColumn is read only? Thanks Stephen.