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:
(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???