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. Image for the cookie policy date

Single row selection


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

3 Replies

JS Jayapradha S Syncfusion Team 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


UD UK Developer March 22, 2016 11:13 PM UTC

Perfect - thanks!


AP Ashwini Paranthaman Syncfusion Team 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.

Loader.
Live Chat Icon For mobile
Up arrow icon