XtraGrid.GridControl Layout issues


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 3 of 3

Thread: XtraGrid.GridControl Layout issues

Hybrid View

  1. #1
    Join Date
    Feb 2010
    Posts
    6

    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.

    Thanks

  2. #2
    Join Date
    Nov 2003
    Location
    Portland, OR
    Posts
    8,387
    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
    http://www.philweber.com

    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
    Posts
    6
    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, 10:10 PM
  2. Axis 2.1.3 - WSDL2Java Client stub issues
    By dilip.kumar in forum Web
    Replies: 2
    Last Post: 06-18-2008, 05:41 AM
  3. changing report layout help
    By ksuwanto8ksd in forum VB Classic
    Replies: 0
    Last Post: 05-18-2005, 03:47 AM
  4. swing Null layout
    By satish in forum Java
    Replies: 6
    Last Post: 10-16-2001, 09:06 PM
  5. swing null layout
    By satish in forum Java
    Replies: 3
    Last Post: 10-05-2001, 01: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
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

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