开发者

Change DataSource in XtraGrid

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜