Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
20
UltraWebGrid: Hiding checkboxes in a checkbox column
posted

Hi

I have an Aspx with an UltraWebGrid that is populated with columns and rows dynamically in the codebehind. The first column should contain checkboxes in certain rows. So far I've added the checkboxes by making the column a checkbox column:

 

 

 

var column = new UltraGridColumn(true);
column.Type = ColumnType.CheckBox;
column.DataType =
"System.Boolean";

The problem is that I cannot see an immediate way of controlling the individual type or visibility of each cell. Thus, all the cells in the column are checkboxes. I kan disable the checkboxes I don't need, but not hide them.

Is there a way to hide the checkboxes of certain cells in an UltraWebGrid, or hide the cell itself, or change the type of the cell?

I'm on Infragistics NetAdvantage 10.3 for .Net framework 3.5.

Thanks

Parents
No Data
Reply
  • 630
    posted

    I am not sure if you found a way to do this (in WinForms), but this works nicely for me:

     

                    With e.Row.Cells(0)

                        .Activation = Infragistics.Win.UltraWinGrid.Activation.Disabled

                        .Style = Infragistics.Win.UltraWinGrid.ColumnStyle.Image

                    End With

Children