Click here to Skip to main content
15,891,136 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hi everybody,
I have a UltraWinGrid in my form that the user allowed to change the sequence of columns of it.also i have a button in my form that it should send the DataSource of this Grid as a DataTable to a class that generates report.
I have used following code to cast the DataSource to DataTable:

C#
(DataTable)UltraGrid1.DataSource


but the problem is that the sequence of columns in this new DataTable is not the visible sequence that the user sets...
How can i change the DataSource of UltraWinGrid to what i can see in Grid on screen now??

Edit: my application user can modified the WinGrid (for example select columns that he want to see in grid and also change sequence of them) and then when he press 'Print' button the current WinGrid with current columns and sequence and data should send to a class as a parameter in DataTable type.
Now what should i do???
Posted
Updated 13-Feb-12 18:08pm
v2
Comments
M_Mogharrabi 13-Feb-12 23:41pm    
I am waiting for your helps,
Please help me....

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900