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.

GridDataControl

Thread ID:

Created:

Updated:

Platform:

Replies:

110879 Aug 28,2013 08:40 PM Sep 5,2013 10:29 AM Silverlight 1
loading
Tags: GridControl
Jon Stonis
Asked On August 28, 2013 08:40 PM

Where is the selectionchanged event for the GridDataControl.  I realize that the sfDataGrid has it, but that control is much harder to style and seems to not have theme capability.

I just need to know when the user selects a different row (either by keyboard or mouse).  Please offer a solution.

Thanks,
Jon

Saravanan M [Syncfusion]
Replied On September 5, 2013 10:29 AM

Hi Jone,

Query1:

We have analyzed your query. You can get the SelectionChanged event from the Model. You can also get the reason for row changed by using Reason API.

You can refer the below codesnippet.

Codesnippet[C#]:

this.syncgrid.Model.SelectionChanged += new GridSelectionChangedEventHandler(Model_SelectionChanged);

void Model_SelectionChanged(object sender, GridSelectionChangedEventArgs e)

{

      var res = e.Reason;     

}

 

 

Query2:

We don’t have support in for visualstyle theme in SFGrid.We may considered this as feature in our upcoming release. You can merge custom theme by using ResourceDictionary. You can refer the below codesnippet.

Codesnippet[XAML]:

<syncfusion:SfDataGrid.Resources>                       

<ResourceDictionary>                           

<ResourceDictionary.MergedDictionaries>                               

<ResourceDictionary Source="/Syncfusion.SfGrid.WPF;component/Styles/Styles.xaml" />                            </ResourceDictionary.MergedDictionaries>                      

 </ResourceDictionary>                  

 </syncfusion:SfDataGrid.Resources>

 

If you want to know more about custom theme,you can also refer the below link,

DocumentationLink: http://help.syncfusion.com/UG/winrt/Documents/stylesandtemplates.htm

 

Please let us know if you have any queries.

Regards,

Saravanan.M

 


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.

;