nju0843
Member
***This message is a bit long but please bare with me.***
Hello all,
I have a mySQL table named Budget that
has the following 4 columns:
id, date, starting_balance, remaining_balance
I fill a Datatable with these fields.
I then take the DataTable and bind it to a DataGrid.
The problem is that I don't want the user to see
the id column but I still need the column to be there
in case the user inserts a row, or deletes a row.
I don't see a way for me to "hide" a column in a DataGrid.
I have tried removing the id column from the DataTable before
binding to the Datagrid and then adding the column back before
updating the database, but I get a concurrency exception because
the commandBuilder can apparently detect that I altered the state
of the original Datatable.
Sorry about the length...
Any suggestions?
Hello all,
I have a mySQL table named Budget that
has the following 4 columns:
id, date, starting_balance, remaining_balance
I fill a Datatable with these fields.
I then take the DataTable and bind it to a DataGrid.
The problem is that I don't want the user to see
the id column but I still need the column to be there
in case the user inserts a row, or deletes a row.
I don't see a way for me to "hide" a column in a DataGrid.
I have tried removing the id column from the DataTable before
binding to the Datagrid and then adding the column back before
updating the database, but I get a concurrency exception because
the commandBuilder can apparently detect that I altered the state
of the original Datatable.
Sorry about the length...
Any suggestions?