Professional UI Solutions
Site Map   /  Register


Please Log In to post a new message or reply to an existing one. If you are not registered, please register.

NOTE: Some forums may be read-only if you are not currently subscribed to our technical support services.

Forums » Prof-UIS Tech Support » Re-order columns in CExtReportGrid Collapse All
Subject Author Date
Bond IS Jun 26, 2013 - 6:19 AM

Hi there,

Please advise solution for the case we want to re-order existing columns in report grid by code. For work around we called method ReportColumnActivate to hide all columns then we show one-by-one follow correct order. But this solution cause bad performance so we need to improve by another solution. Please advise!

Minh (Bond US)

Art Wilkes Jun 26, 2013 - 11:20 AM

Grid are used to manage records.

Normally the records are mapped to the grid on a 1 to 1 relationship.

When you reorder the columns you need to understand what you want to have happen to the records.

So could you give me a little more information on what you are trying to accomplish.

Bond Developer Jun 28, 2013 - 4:34 AM

I got solution. Either ways system calls ReportColumnActive to re-order columns so I have to use it anyway. Thanks for your support

Art Wilkes Jun 26, 2013 - 9:58 AM

A solution could be to send a column to the clipboard, then insert or delete the columns as required.  Then paste the clipboard in the column required.

A second solution would be to send the data including the headers to a CSV file and then reordering the CSV file and reinsert the new data.

Sounds like this would be a good feature to include in the class.


Bond Developer Jun 26, 2013 - 10:48 AM

Thanks for quick answer Art. Please add more detail since i’m new in Report Grid. I’m talking about grid layout where we already added columns and now we want to apply new layout with new order of columns.