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.
In 126.96.36.199, 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.
SRSigurd RingbakkenMarch 8, 2005 02:47 PM UTC
>In 188.8.131.52, 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.
AdministratorMarch 8, 2005 05:04 PM UTC
This is currently not supported. I added this to our defect database.
As a work around you can try catching the CurrentRecordContextChanged event and set teh initial values there.
>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...
AdministratorMarch 9, 2005 03:55 PM UTC
You can use this.gridGroupingControl1.TableControlCurrentCellShowingDropDown to catch the dropdown being clicked.