Hi
I have a Hierarchy GridView.
I bound the dataset to bindingSource, and the Grid to the bindingSource.
The bound works well.
I update the data in the grid through textbox that is bounded to the bindingSource.
I have a column name 'Active' that is 0 or 1. This column is bounded to a checkbox and also works OK.
The problem is when a add new row through the bindingSource:
bindingSource.AddNew();
The new added row is acting strange. A new empty row is added to the grid.
But in the bounded textbox it is showing the former current row with it's values.
When i remove the bind from 'Active' column to the checkbox, the AddNew works fine. The textbox show the new empty row.
When i bind the 'Active' column to a textbox the AddNew works OK.
Can you help me figure out what is wrong?
I have a Hierarchy GridView.
I bound the dataset to bindingSource, and the Grid to the bindingSource.
The bound works well.
I update the data in the grid through textbox that is bounded to the bindingSource.
I have a column name 'Active' that is 0 or 1. This column is bounded to a checkbox and also works OK.
The problem is when a add new row through the bindingSource:
bindingSource.AddNew();
The new added row is acting strange. A new empty row is added to the grid.
But in the bounded textbox it is showing the former current row with it's values.
When i remove the bind from 'Active' column to the checkbox, the AddNew works fine. The textbox show the new empty row.
When i bind the 'Active' column to a textbox the AddNew works OK.
Can you help me figure out what is wrong?