i used devexpress component
i set data for ItemSource property of GridControl in code behhind like this :
grid.ItemsSource = query ;
query is List
when i filtered or searched in gridcontrol , display rows changed now i want to get the changed itemsource like this :
DataSource = ((IEnumerable)grid.ItemsSource).ToList();
How Can I do it ?
thanks