Radlistview column checkbox customize

1 Answer 11 Views
ListView
Jhon
Top achievements
Rank 1
Jhon asked on 01 Sep 2025, 02:58 PM | edited on 01 Sep 2025, 03:42 PM

Hello, I need to use RadListView to display records in ListDetails in WINFORMS. I have an active field that returns true or false. I want to display it with a checkbox to make the display more presentable. Is this possible? I look forward to your responses. Thank you.

 

 

1 Answer, 1 is accepted

Sort by
0
Nadya | Tech Support Engineer
Telerik team
answered on 03 Sep 2025, 11:52 AM

Hello, Jhon,

Yes, it is possible to display a boolean field as a checkbox in RadListView when using the DetailsView mode in WinForms. I can suggest the following approaches to achieve this:

Set the ShowCheckBoxes property to true to display checkboxes for each row: Using Checkboxes

Here is a basic code example:

radListView1.ViewType = Telerik.WinControls.UI.ListViewType.DetailsView;
radListView1.ShowCheckBoxes = true;

By default, enabling ShowCheckBoxes will display a checkbox for each row. If you want the checkbox to appear only in the "Active" column (and not for the whole row), you will need to implement a custom cell. I believe this approach will be more close to your scenario and bind the active field from your data. The custom cell should inherit from DetailListViewDataCellElement. Then, in the CreateChildElements method, you can add a RadCheckBoxElement. More details and example on creating a custom cell can be found here: Custom items - WinForms ListView Control

    I hope this information helps. If you have other questions, please let me know.

      Regards,
      Nadya | Tech Support Engineer
      Progress Telerik

      Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

      Tags
      ListView
      Asked by
      Jhon
      Top achievements
      Rank 1
      Answers by
      Nadya | Tech Support Engineer
      Telerik team
      Share this question
      or