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
570
How to disabled individual check box in a listview
posted

Is it possible to disabled individual checkbox in a UltraListView?

Parents
No Data
Reply
  • 9190
    Suggested Answer
    Offline posted

    Hello,

    The UltraListView does have the ability to disable individual checkboxes. You will be able to perform this action by handling the ItemCheckStateChanging event and cancelling this for the items you wish to disable the checkbox on. Please look at the following code to help you perform this action.

    private void ultraListView_ItemCheckStateChanging(object sender, Infragistics.Win.UltraWinListView.ItemCheckStateChangingEventArgs e)
            {
                if (e.Item.Index > 0)
                    e.Cancel = true;
            }

    This code will allow you to check the first checkbox in your list and disable to rest. You can alter this to your preference. 


    Please let me know if you need further assistance with this.

Children