Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
95
Issue with XamDataGrid when bound to BindingSource class (.NET 2.0)
posted

Hi,

 I am facing one issue with XamDataGrid when i use the BindingSource class to bind to XamDataGrid.

BindingSource class events such as PositionChanged and CurrentItemChanged events are not firing. They are fired only once when the grid is loaded.

When I navigate between the rows it doesn't fire PositionChanged event.

When I modify and record then CurrentItemChanged event doesn't get fired.

BindingSource.Current always shows first record even if i am modifying a record at row number 4 or something else.

Here is the details -

I have one datatable _myTable which contains actuall data from db.

one view _myView which is set as follows -

_myView = _myTable.DefaultView ( use this view to perform some filter operation on records.)

 Then there is a BindingSource _myBSource

_myBSource.DataSource = _myView;

and finally

_myXamGrid.DataSource = _myBSource;

Let me know if this not the correct way of using BindingSource with XamDataGrid or I am missing some settings.

Regards,

Varun