XtraGrid.GridControl Layout issues
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.
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.
Please post questions to the forums, where others may benefit.
I do not offer free assistance by e-mail. Thank you!
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.
By Freelancer.Internet.com in forum Careers
Last Post: 08-25-2009, 09:10 PM
By dilip.kumar in forum Web
Last Post: 06-18-2008, 04:41 AM
By ksuwanto8ksd in forum VB Classic
Last Post: 05-18-2005, 02:47 AM
Last Post: 10-16-2001, 08:06 PM
Last Post: 10-05-2001, 12:11 PM
-- Android Development Center
-- Cloud Development Project Center
-- HTML5 Development Center
-- Windows Mobile Development Center