Dear all,
I have the ultragrid which is disabled in runtime. Now I catch two problems as below. Are there any alternative solutions?
(1) The scroll bar is disabled. When no of records exceed the ultragrid height, I cannot nagivate to the end. Is there any alternative without enable ultragrid?? I am pressing up and down keys to nagviate by using custom code to select active row.
(2) The column is not in sorting. I have set the datatype to be int and set sortIndicator. But it does not work.
ultraList.DisplayLayout.Bands[0].Columns["Number"].SortIndicator = Infragistics.Win.UltraWinGrid.SortIndicator.Ascending;
ultraList.enabled=false;
Hello ryanfung,
Could you please let me know of how you want to achieve this functionality. I do not see how you could navigate through the grid when it cannot even receive focus and what is left for the events to fire.
I suggest you to enable to control and disable all the functionality one by one.
I have the same problem too, where i disable all the ultra grid so that it wouldn't do anything when mouse click event occurs, and i just want to control the ultragrid with my keyboard, by activating the key down event
Hello,
(1) I do not see how the WinGrid could be disable and to has enabled UI elements.
So I can think of two ways to achieve what you are looking for(if I got your scenario right):
1. To enable the WinGrid and make all columns read-only, disallow filtering, sorting, etc.
2. To put the WinGrid in a panel(both docked to fill to their parents) and an 'UltraScrollBar' control docked to right in the 'UltraPanel' control. Here comes the tough part here - handling the actual scrolling of the WinGrid. So I created and attached a small sample to this post which demonstrates this second approach and also showing that .SortIndicator(2) works as expected with the disabled WinGrid.
Please take a look at this sample and let me know if it suits your needs.