Hi,
I am working on UltraGrid. I was wondering if we can order the columns programatically.
I am setting the datasource property of the grid at runtime. I have around 100 columns. I need to set the order of few important columns to the first few visible columns. I am sure, there has to be a way.
Let me know if anyone has worked on it.
Thanks!
Set each column's Header.VisibleIndex property. This link leads to the API documentation for this property, as contained in our online help documentation of NetAdvantage for Win Client 2009 Volume 1.
Thanks for your reply Vince.
Is it something like this?
DisplayLayout.Bands[0].Columns[
"Col95"].Header.VisiblePosition = 0;
I can reorder the columns using this.
Let me know if there is better approach other than this.
That's the correct approach, yes.