Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Generic Maintenance Forms
Message
 
To
12/02/2004 18:48:30
General information
Forum:
ASP.NET
Category:
The Mere Mortals .NET Framework
Miscellaneous
Thread ID:
00876069
Message ID:
00876946
Views:
14
Steve,

>The problem I'm having now is that the BindingSourceMember on the datagrid is set to null when the page posts back upon initiation of the EditCommand. I can step through it and see that it is set properly upon initial selection of a table from my dropdownlist - and the data is initially displayed correctly. After the EditCommand event handler code executes and the page is redisplayed, the datagrid has no columns except the EditCommandColumn and the ButtonColumn (Delete) - which are the only static columns.
>I have an mmDropDownList that allows selection of the table - the SelectedIndexChanged event handler takes care of setting the BindingSourceMember to the table selected - as well as creating a reference to the generic bizobj, registering it, getting the data, and calling the forms BindControl. There is also code that gets called when the table name changes that creates the appropriate BoundColumns in the DataGrid.

When the EditCommand event handler executes, the page is posted back again...if you trace through the code during this postback can you see a place where the BindingSourceMember should/can be set?

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
Next
Reply
Map
View

Click here to load this message in the networking platform