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.
Unfortunately, activation email could not send to your email. Please try again.

Single row selection

Thread ID:

Created:

Updated:

Platform:

Replies:

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


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 08:29 AM

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 07:13 PM

Perfect - thanks!

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

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.

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.

;