Hi ,
I have 30 columns in grid.
When i right click on the particular column header , pops up menu with freeze and unfreeze menu items.
If i click on the freeze menu item , it should freeze till that column .
If i right clcik on the 10 th column and click on freeze , it should freeze 1- 10 column s
If i right click and click on unfreeze gris should be normal .
Any help.
Thanks.
Hi,
What part of this are you having trouble with? There is no built-in functionality in the grid to do this with a context menu or to freeze multiple columns at once with the grid's UI.
But you could easily create your own context menu for this.
You will need to set UseFixedHeaders on the grid's DisplayLayout to true to enable fixed header. You have to be using RowLayoutStyle = None, fixed headers are not supported in RowLayout mode.
Here's an article that will help you detect which column was right-clicked.
HOWTO:UltraWinGrid Mouse Position and Column Identification
To fix a column, you simply set column.Header.Fixed to true.
Is their a property (frozen property ) in which i can set the no columns i need to freeze for a frid.
like grid.columns frozen=6, so that it can freeze firat 6 column of the grid.
Thanks
No, you would have to set each of those columns to Fixed individually.
I was trying to do this :
grid.displaylayout.bands(0).columns(columnindex).header.fixed =true
Where columnindex value is the column index right clicked on
Will this for freeze the columns in the grid.
This line of code will fix the column you specified. It will move that column to the left edge of the grid and fix it on the left side. It will not have any effect on any other columns.
Note that column fixing is not supported in RowLayout mode.
I don't want to fix headers in initilize layout.
I should be able to fix any column with in the grid. If i do this in the initilize layout , the freeze columns are fixed.
But i need freeze any column in the grid.
Any ideas on this...
I tried with the above line of code , the column is not moving to teh left side too.
Any ideas to freeze any column.
If i pass a columnindex , it i pass columnindex 4 then it should freeze first 4 columns.
Any one can help me on this ...
http://forums.infragistics.com/forums/t/7020.aspx