DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 3 of 3
  1. #1
    Join Date
    Feb 2010

    XtraGrid.GridControl Layout issues

    Hey all,

    I have a problem where I have a form and on load of this form i use an xml file to load my original layout. This sorts by priority and finished by dates.
    Then on close i save the layout that they had on close and that is the next default.

    What i want to do is be able to know when they use the right click context menu to select clear sorting. If i could detect that i would set the layout to having priority and finished by and save that to the xml. However the only way i know of doing this is look at the Layout event that is called whenever it changes and check if the layout is nothing. I cannot find a way of getting the layout from the gridControl either and therefore this method doesnt work.

    So basically to summarise, I am either looking for an event that gets fired when the clear sorting is done from within that context menu
    OR a way of checking whether the grid layout is no sorting and therefore has just been cleared. Either of these would be awesome.


  2. #2
    Join Date
    Nov 2003
    Portland, OR
    If you don't get an answer here, you might try DevExpress support: http://www.devexpress.com/support/. This site is not affiliated with DevExpress.
    Phil Weber

    Please post questions to the forums, where others may benefit.
    I do not offer free assistance by e-mail. Thank you!

  3. #3
    Join Date
    Feb 2010
    Fixed. There is a GridView_GridMenuItemClick Event that is fired when you use the context menu. Then you can test
    if (e.MenuType != GridMenuType.Column || e.DXMenuItem.Tag.ToString() != "MenuColumnClearSorting") return;
    This allows you to only do your method when they are using clear sort.

Similar Threads

  1. Looking for a Javascript pro to help work out web application issues
    By Freelancer.Internet.com in forum Careers
    Replies: 0
    Last Post: 08-25-2009, 09:10 PM
  2. Axis 2.1.3 - WSDL2Java Client stub issues
    By dilip.kumar in forum Web
    Replies: 2
    Last Post: 06-18-2008, 04:41 AM
  3. changing report layout help
    By ksuwanto8ksd in forum VB Classic
    Replies: 0
    Last Post: 05-18-2005, 02:47 AM
  4. swing Null layout
    By satish in forum Java
    Replies: 6
    Last Post: 10-16-2001, 08:06 PM
  5. swing null layout
    By satish in forum Java
    Replies: 3
    Last Post: 10-05-2001, 12:11 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
HTML5 Development Center
Latest Articles
Questions? Contact us.
Web Development
Latest Tips
Open Source

   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center

We have made updates to our Privacy Policy to reflect the implementation of the General Data Protection Regulation.