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.

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

Thread ID:

Created:

Updated:

Platform:

Replies:

25820 Mar 8,2005 07:27 AM Mar 9,2005 10:55 AM Windows Forms 5
loading
Tags: GridControl
Sigurd Ringbakken
Asked On March 8, 2005 07:27 AM

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 09:13 AM

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 09:47 AM

>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 12:04 PM

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 09:46 AM

>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 10:55 AM

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.

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.

;