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.
Syncfusion Feedback

GGC: Auto-populating values when adding new record inside a group

Thread ID:

Created:

Updated:

Platform:

Replies:

25820 Mar 8,2005 12:27 PM UTC Mar 9,2005 03:55 PM UTC WinForms 5
loading
Tags: GridControl
Sigurd Ringbakken
Asked On March 8, 2005 12:27 PM UTC

Hi! Is it possible to automatically fill columns in a new record based on the group you are inside? I show an AddNewRecordAfterDetails on my lowest group level, and would like the grouping columns automatically filled. Regards, Sigurd Ringbakken

Administrator [Syncfusion]
Replied On March 8, 2005 02:13 PM UTC

In 3.0.1.0, when I start typing in the new row within a group, the grouped values automatically appear. Here is a sample. If I type into Col2 or Col3 on any of the new rows within a group, Col0 and Col1 auto-populate for me. http://www.syncfusion.com/Support/user/uploads/GGC_AUtoPopNewRow_14976c62.zip

Sigurd Ringbakken
Replied On March 8, 2005 02:47 PM UTC

>In 3.0.1.0, when I start typing in the new row within a group, the grouped values automatically appear. > I group by columns added as a ForeignKeyReference relation. The grouped values does not appear automatically in the new record. Regards, Sigurd Ringbakken

Administrator [Syncfusion]
Replied On March 8, 2005 05:04 PM UTC

This is currently not supported. I added this to our defect database. http://www.syncfusion.com/support/issues/grouping/Default.aspx? As a work around you can try catching the CurrentRecordContextChanged event and set teh initial values there.
private void gridGroupingControl1_CurrentRecordContextChange(object sender, CurrentRecordContextChangeEventArgs e)
{
	if(e.Record is GridAddNewRecord && e.Action == CurrentRecordAction.BeginEditCalled )
	    Console.WriteLine(e.Record.ToString());
}

Sigurd Ringbakken
Replied On March 9, 2005 02:46 PM UTC

>As a work around you can try catching the CurrentRecordContextChanged event and set teh initial values there. One of my problems is that I use a ForeignKeyReference relation that uses 2 relation keys. This means that one key must be set in my parent record previous to selecting a record from the child table. But the CurrentRecordContextChanged event is not fired when clicking on a dropdown...

Administrator [Syncfusion]
Replied On March 9, 2005 03:55 PM UTC

You can use this.gridGroupingControl1.TableControlCurrentCellShowingDropDown to catch the dropdown being clicked.

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

;