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
430
Problem with Refreshing a grid
posted

Hello
I Have a problem with refreshing winGrid.
I bind data to the grid like this:
            private BindingSource bs;
            var employeeQuery = from employee in db.Employees
                                orderby employee.LastName
                                select employee;
            bs = new BindingSource(employeeQuery, "");
            ultraGrid1.DataSource = bs;

The grid display all the data.
When I change a value in a cell, and I want to refresh the grid so I will see the original data, the drid do not refresh itself, and I stiil see the new data i wrote.
To refresh the grid I used: ultraGrid1.Rows.Refresh(Infragistics.Win.UltraWinGrid.RefreshRow.ReloadData);
Thanks,
Yossy