vb.netcheckboxinfragisticsultrawingridselectall

Enable/Disable selectAll check box in Infragistics UltraWinGrid


I have used Infragistics UltraWinGrid to display data on the Grid. In this grid, there is one check box column. I have added check box in header in this column to selectAll option. Now I want to enable/disable this header check box on any button click event to restrict user to perform any action. Can any one tell me how to do this? Thanks in advance.


Solution

  • I can think of two options off the top:

    1) If you don't want the user to click any of the checkboxes, just hide the entire column if they are not authorized.

    2) If you only want to keep the user from selecting all of the items in the grid, add code to the selectAll method to ignore the request if the user is not authorized.

    Update

    3) If you are using a version of the grid that supports it, you can use:

    grid.DisplayLayout.Override.HeaderCheckBoxVisibility = HeaderCheckBoxVisibility.Never

    when the form containing the grid is loaded if the user is not authorized.