moving columns in datagrid

  • Thread starter Thread starter Christiaan
  • Start date Start date
C

Christiaan

What do I have to do to make it possible to move columns around in a
Datagrid with my mouse?

Christiaan
 
Hi Christiaan,

Thank you for posting in the community!

Based on my understanding, you want to re-order the columns in the datagrid.

==========================================================
Is your datagrid WinForm based or Web Form based?
I think Peter's suggested article shows you how to re-order columns in web
form.

For WinForm datagrid, the columns appear in the order that their column
styles were added to the tablestyle being used by the grid. If you want to
change this order, you would need to create a new table style, and add the
columnstyles in the order you want things to appear.
There is a sample in:
http://www.syncfusion.com/FAQ/WinForms/FAQ_c44c.asp#q764q

Also, you may refer to my colleague's reply at:
http://groups.google.com/groups?hl=zh-CN&lr=&ie=UTF-8&oe=UTF-8&threadm=tWQn4
trlDHA.2464%40cpmsftngxa06.phx.gbl&rnum=1&prev=/groups%3Fq%3D%2522Ying%2BShe
n%2522%2B%2522reorder%2522%2Bdatagrid%26hl%3Dzh-CN%26lr%3D%26ie%3DUTF-8%26oe
%3DUTF-8%26selm%3DtWQn4trlDHA.2464%2540cpmsftngxa06.phx.gbl%26rnum%3D1

=========================================================
Please apply my suggestion above and let me know if it helps resolve your
problem.

Thank you for your patience and cooperation. If you have any questions or
concerns, please feel free to post it in the group. I am standing by to be
of assistance.
Have a nice day!!

Best regards,
Jeffrey Tan
Microsoft Online Partner Support
Get Secure! - www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.
 
Hi Christiaan,

Does my reply make sense to you?
If you still have anything unclear, please feel free to tell me.

Best regards,
Jeffrey Tan
Microsoft Online Partner Support
Get Secure! - www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.
 
sorry for my late response,
everything is clear, although it surprises me that it takes that much effort
to do it (for instance compared to a language like java or delphi it's just
a matter of setting a property) especially because I expected Dotnet having
a nice-smooling, rich, easy-to-use UI controls;)

Many Thnx!
 
Hi Chrisitiaan,

Thanks very much for your feedback.

Yes, in .Net WinForm, DataGrid is a highly function tailored control, its
exposes an already defined programming object model for developer. So we
must follow its model to do our customize.

But because of this highly function tailored, this control also gives you
much convinience of data operation, such as databinding, editing, etc.

If you still feel its un-comfortable, please feel free to provide your
suggestion at:
http://register.microsoft.com/mswish/suggestion.asp
or mail to (e-mail address removed)

Thanks for your understanding.

Best regards,
Jeffrey Tan
Microsoft Online Partner Support
Get Secure! - www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.
 
Back
Top