开发者

Change DataSource in XtraGrid

开发者 https://www.devze.com 2023-02-01 23:53 出处:网络
i have two different Lists. List<MyClass> list1 = new List<MyClass>(); List<OtherClass> list2 = new List<OtherClass>();

i have two different Lists.

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

I bind one of them to a xtragrid form devexpress:

gridControl.DataSource = list1;
开发者_开发问答

That works. Now i want to change the list but the columns doesn't change.

Can someone help me?


Call gridView.PopulateColumns().

0

精彩评论

暂无评论...
验证码 换一张
取 消