Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
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???
Posted 12-Feb-12 19:51pm
Edited 13-Feb-12 19:08pm
v2
Comments
phoenix1167 at 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)

  Print Answers RSS
0 OriginalGriff 7,800
1 Sergey Alexandrovich Kryukov 7,072
2 DamithSL 5,604
3 Manas Bhardwaj 4,986
4 Maciej Los 4,790


Advertise | Privacy | Mobile
Web02 | 2.8.1411023.1 | Last Updated 14 Feb 2012
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100