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
close icon

WPF GridDataControl CheckBox column

I have a GridDataCheckBoxVisibleColumn in my GridDataControl. 

1. It should be two-state (true, false), but by default it is three-state. How to can I change this behaviour?

2. How can I update the state of an underlying row item immediately on the checkbox state change? I can subscribe CurrentCellChanged event and what next?

Thanks,
Ivan

2 Replies

IE Ivan Eryshov April 4, 2013 12:16 PM UTC

Ok, found the answer on my first question in another thread: http://www.syncfusion.com/support/forums/grid-wpf/105695/problems-with-checkboxes-in-grid. But still need help with 2.


TV Thangapriya V Syncfusion Team April 11, 2013 07:01 AM UTC

Hi Ivan,


We have analyzed your query 2. You can achieve your requirement by setting the UpdateMode API to PropertyChanged as follows.

Code snippet [XAML]:

  <syncfusion:GridDataControl x:Name="SyncGrid"   

                                    AutoPopulateColumns="False"

                                    ItemsSource="{Binding GDCSource}" UpdateMode="PropertyChanged" >

 

 

You can refer the following UG link for this.

http://help.syncfusion.com/ug/wpf/grid/default.htm#!Documents/updatemode.htm

Please let us know if you have any queries.


Regards,

Thangapriya


Loader.
Live Chat Icon For mobile
Up arrow icon