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.

how to highlight selection for nested table ? for GGC

Thread ID:

Created:

Updated:

Platform:

Replies:

80496 Apr 6,2009 05:32 PM Apr 9,2009 07:31 AM Windows Forms 3
loading
Tags: GridControl
David Cui
Asked On April 6, 2009 05:32 PM


hi,

i can easily do the selection of the first level table (say, the datasource is nested datatable) of GGC. Then do right click menu pop up.

how to highlight selection for nested table ? for GGC.

David


Rajadurai C [Syncfusion]
Replied On April 7, 2009 11:13 AM

Hi David,

Thanks for your interest in Syncfusion products.

The style information of the nested table records can be accessed thorough the Table and TableControl properties in gridgroupingcontrol.

Please refer to the following KB link that deals with this.
http://www.syncfusion.com/support/kb/grid/Default.aspx?ToDo=view&questId=295

Please let me know if you have any further concerns.

Regards,
Rajadurai


David Cui
Replied On April 7, 2009 03:00 PM

Rajadurai,

Thanks a lot! Maybe I didn't make myself clear. Let me say this: 1. i put the selection mode as following


this.gridGroupingControl1.TableModel.Options.SelectCellsMouseButtonsMask = MouseButtons.Left;

this.gridGroupingControl1.TableOptions.AllowSelection = Syncfusion.Windows.Forms.Grid.GridSelectionFlags.Any;
this.gridGroupingControl1.TableOptions.ListBoxSelectionMode = System.Windows.Forms.SelectionMode.None;


2. i can highlight range of cells, it triggers tableModel.selectionChanged event. so i do some cell summation within the selection changed event. it works fine .

3. i expand one record, try to highlight range of cells at child (nested) table. somehow it doesn't trigger selectionChanged event. That is my question. Am I clear ?
does the nested table selectionChanged event need to be explicitly hooked up by other way ?

4. if you need example, just replace step one steps into your provided example above. you can mimic what i am talking about.


thx.

David




>Hi David,

Thanks for your interest in Syncfusion products.

The style information of the nested table records can be accessed thorough the Table and TableControl properties in gridgroupingcontrol.

Please refer to the following KB link that deals with this.
http://www.syncfusion.com/support/kb/grid/Default.aspx?ToDo=view&questId=295

Please let me know if you have any further concerns.

Regards,
Rajadurai




Rajadurai C [Syncfusion]
Replied On April 9, 2009 07:31 AM

Hi David,

Thanks for your details.

By default, the table model points to the parent grid model. To get with the events of tablemodel, you can access the tablemodel of the specific table and hook events there. Please refer to the following code.

GridTableModel model = this.gridGroupingControl1.GetTableModel("ChildTable");
model.SelectionChanged += new GridSelectionChangedEventHandler(model_SelectionChanged);

//Event
void model_SelectionChanged(object sender, GridSelectionChangedEventArgs e)
{
//code
}


Please let me know if you have any further concerns.

Regards,
Rajadurai


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.

;