We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on : Nov 16th 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Single row selection

Thread ID:

Created:

Updated:

Platform:

Replies:

123484 Mar 21,2016 09:50 PM UTC Mar 23,2016 10:19 AM UTC WPF 3
loading
Tags: GridTreeControl
UK Developer
Asked On March 21, 2016 09:50 PM UTC


I'm looking at the GridTree control for a project and it looks perfect. The only issue I have is that I need to limit the user selection to one row only. Is there a way to do that?

thank

Jayapradha S [Syncfusion]
Replied On March 22, 2016 12:29 PM UTC

Hi Customer,

Thank you for using Syncfusion products.

Yes you can limit the selection in GridTreeControl to only one row at a time by setting the ListBoxSelectionMode to One,

Code Example:

public MainWindow()

        {

            InitializeComponent();                   

            this.treeGrid1.EnableNodeSelection = true;

            this.treeGrid1.Model.Options.AllowSelection = GridSelectionFlags.Row;

            this.treeGrid1.Model.Options.ListBoxSelectionMode = GridSelectionMode.One;

        }


Regards,
Jayapradha

UK Developer
Replied On March 22, 2016 11:13 PM UTC

Perfect - thanks!

Ashwini Paranthaman [Syncfusion]
Replied On March 23, 2016 10:19 AM UTC

Hi Customer,
We are glad that your issue has been fixed.
Please let us know if you need any other assistance.
Regards,
Ashwini P.

CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

;