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 : November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

GridDataControl: Access nested Model

Thread ID:

Created:

Updated:

Platform:

Replies:

100234 Jul 15,2011 08:17 AM UTC Aug 8,2011 06:21 PM UTC WPF 3
loading
Tags: GridControl
Jorge Pampin
Asked On July 15, 2011 08:17 AM UTC

Hello,

How to access to the nested Model to a determinate row?. It's for copy the selected cell of the nested grid.

Thanls


Deenadhayalan M [Syncfusion]
Replied On July 29, 2011 03:28 PM UTC

Hi Jorge,

Thanks for using Syncfusion Products.

You can get the Nested Model selected row column indexes using GridDataChildTableModel selectionchanged event. This can be achieved in RecordExpanded event. From that you can get determinate row. We have prepared a model sample based on this. Please find it in the following location.

Please let us know if you have any queries.

Regards,
Deenadhayalan



NestedGrid_RowColumnIndex_cc4de594.zip

Jorge Pampin
Replied On August 2, 2011 02:45 PM UTC

Hello,

That works fine, but in the nestedgrid it´s only possible select a row, how to configure the GridDataControl to select any range of cells?

Thanks!


Deenadhayalan M [Syncfusion]
Replied On August 8, 2011 06:21 PM UTC

Hi Jorge,

You can achieve your requirement by setting the AllowSelection and ListBoxSelectionMode property as follows,

Code snippet [C#]:

void Table_RecordExpanded(object sender, GridDataValueEventArgs e)
{
e.Value.ChildModels[0].Options.AllowSelection = GridSelectionFlags.Cell;
e.Value.ChildModels[0].Options.ListBoxSelectionMode = GridSelectionMode.None;
}

We have prepared a sample based on this. Please find it in the following location.

Please let us know if you have any queries.

Regards,
Deenadhayalan



NestedGridDemo_83db948d.zip

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

;