Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
DataGrid Question
Message
General information
Forum:
ASP.NET
Category:
The Mere Mortals .NET Framework
Miscellaneous
Thread ID:
00804904
Message ID:
00805023
Views:
38
>If I'm using mmDataGrid to display child records, and I have AddRowsWithDownArrow = true, it doesn't automatically populate the parent foreign key field (as it does when I call NewRow() directly).

>Should it do this? And if not, where's the best place to hook into for getting this field populated (and any other defaults I might have).

When you add the row by pressing the down arrow, you're completely circumventing the business object. A new DataRow is added to the DataTable "behind the back" of the business object so none of its logic kicks in. I'm not aware of a good place to hook into this...that's why I made it easy to turn off the behavior.

>Also -- the description for AddRowsWithDownArrow is incorrect. It currently reads: "Specifies if all columns are automatically resized at runtime."

Thanks...I'll correct the description.

Regards,
Kevin McNeish
Eight-Time .NET MVP
VFP and iOS Author, Speaker & Trainer
Oak Leaf Enterprises, Inc.
Chief Architect, MM Framework
http://www.oakleafsd.com
Previous
Reply
Map
View

Click here to load this message in the networking platform