Hi from Germany,
can anybody tell me how the disable the sort method of the column header?
And how can i delete the pin and the filter symbol from the columns header?
I use ultragrid 2009.2
Thank you very much!
Hi,
mebert said:can anybody tell me how the disable the sort method of the column header?
You should use the HeaderClickAction property for this.
mebert said:And how can i delete the pin and the filter symbol from the columns header?
AllowRowFiltering is the correct property to use for the filter icon.
For the pin button, I would use:
e.Layout.UseFixedHeaders = false;
But please note that all three of the features you are trying to turn off are off by default. So you might be better off trying to find out where you are turning these features on and removing that rather than turning them on and then turning them off again.
OK, i got it:
e.Layout.Bands[0].Columns[
.False;
.None;
Thanks for your reply.
I will change my code and check ist out.
Some more hints for the pin question?
First you will need to handle the BeforeSortChange event. In that event you will need
e.Cancel = True
To remove the pin and filter icons you have to set the properties of the column.
Filter: COLUMN.AllowRowFiltering = False
Pin: Could not find a property on the column