Change data source in XtraGrid

I have two different lists.

List<MyClass> list1 = new List<MyClass>();
List<OtherClass> list2 = new List<OtherClass>();

I associate one of them with the xtragrid form devexpress:

gridControl.DataSource = list1;

It works. Now I want to change the list, but the columns do not change.

Can someone help me?

+3
source share
1 answer
+6
source

Source: https://habr.com/ru/post/1783220/


All Articles