question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[Feature Request]: Enable/disable checkboxes on KryptonTreeView by node level.

See original GitHub issue

I’m looking to do something like this with the KryptonTreeView: https://stackoverflow.com/questions/698369/how-to-disable-a-winforms-treeview-node-checkbox.

There is no DrawMode property to override and no DrawNode event to handle. How can we support enabling checkboxes for only certain node levels instead of everything? Also, it would be best if we could make a node level as single select only, while the child nodes can be multi select.

My scenario: My treeview shows databases and tables… I want to be able to select multiple tables and then iterate through those to generate code (data access classes, UI, etc) for the selected tables in the selected database… Generating them 1-by-1 is not as productive.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
Smurf-IVcommented, Nov 13, 2021
  1. Node level checkbox disable:
  • could be possible
  1. Multi and single select for row,:
  • no, this is custom code

Please see the VirtualTreeGrid (When I finally get it into Extended controls) that will be able to disable checkbox’s per row, and will have more control over the “selectability” of each row via a callback action

Note: Hope to have it sometime this weekend.

0reactions
gordon-mattcommented, Nov 14, 2021

Do you have a pre-release NuGet package I can reference?

Read more comments on GitHub >

github_iconTop Results From Across the Web

KryptonTreeView.cs
Provide feedback. We read every piece of feedback, and take your input very seriously. ... Saved searches. Use saved searches to filter your...
Read more >
How to disable a WinForms TreeView node checkbox?
I need to be able to disable some of the checkboxes in a TreeView control of a WinForms application, but there's no such...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found