RexHeadlong
Programmer
I'm trying to create a read/write column in a DataGrid.
I bound my DataGrid.DataSource to my DataTable.DefaultView. I created my DataGridColumnStyles and added them to a DataGridTableStyle, which I then added to my DataGrid's TableStyles collection.
After all is said and done, I've verified that:
((DataView)myDataGrid.DataSource).AllowEdit = true
myDataGrid.TableStyles[0].ReadOnly = false
myDataGrid.TableStyles[0].GridColumnStyles["myColumn"].ReadOnly = false
And, I even explicitly set this:
myDataGrid.DataSource.DataTable.Columns[0].ReadOnly = false;
BUT, when I run the app, I click in my supposedly editable column, but I can't change the value in there.
Does anybody have an idea what's going wrong?
Thanks for any help.
I bound my DataGrid.DataSource to my DataTable.DefaultView. I created my DataGridColumnStyles and added them to a DataGridTableStyle, which I then added to my DataGrid's TableStyles collection.
After all is said and done, I've verified that:
((DataView)myDataGrid.DataSource).AllowEdit = true
myDataGrid.TableStyles[0].ReadOnly = false
myDataGrid.TableStyles[0].GridColumnStyles["myColumn"].ReadOnly = false
And, I even explicitly set this:
myDataGrid.DataSource.DataTable.Columns[0].ReadOnly = false;
BUT, when I run the app, I click in my supposedly editable column, but I can't change the value in there.
Does anybody have an idea what's going wrong?
Thanks for any help.