|
code
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
GridView multiple DDLI need to fill 5 DDLs when editing a row in GridView.
There are no cascading dependcies on the DropDownLists Should I create 5 DataSources one for each DDL's DataSourceID or is there a better/faster way to do this in 2.0? In asp.net 1.x I would put the ddl loading code in dataGrid1_ItemDataBound. Hi,
As you mentioned, your question is want to know if there're any new way to easily use cascading 5 DropDownList in ASP.NET 2.0 without using 5 DataSource or use code-behind. Based on my understanding, I'm afraid there're no new way to do this. I would suggest you stick to the code-behind approach since you're already familiar with it. Sincerely, Walter Wang (waw***@online.microsoft.com, remove 'online.') Microsoft Online Community Support ================================================== Get notification to my posts through email? Please refer to http://msdn.microsoft.com/subscriptions/managednewsgroups/default.aspx#notif ications. If you are using Outlook Express, please make sure you clear the check box "Tools/Options/Read: Get 300 headers at a time" to see your reply promptly. Note: The MSDN Managed Newsgroup support offering is for non-urgent issues where an initial response from the community or a Microsoft Support Engineer within 1 business day is acceptable. Please note that each follow up response may take approximately 2 business days as the support professional working with you may need further investigation to reach the most efficient resolution. The offering is not appropriate for situations that require urgent, real-time or phone-based interactions or complex project analysis and dump analysis issues. Issues of this nature are best handled working with a dedicated Microsoft Support Engineer by contacting Microsoft Customer Support Services (CSS) at http://msdn.microsoft.com/subscriptions/support/default.aspx. ================================================== This posting is provided "AS IS" with no warranties, and confers no rights. The difference I see are:
I the old style I guess uses less events you only need one. The new style puts caching of the dataset though. Doesn't really explain what happens behind the covers though. Hi Chuck,
I understand that in 1.1 you're binding the 5 DDL in DataGrid's ItemDataBound event. I think you could still do this in GridView, the only change is that you handle this in GridView's RowDataBound event, it's like DataGrid's ItemDataBound. Regards, Walter Wang (waw***@online.microsoft.com, remove 'online.') Microsoft Online Community Support ================================================== When responding to posts, please "Reply to Group" via your newsreader so that others may learn and benefit from your issue. ================================================== This posting is provided "AS IS" with no warranties, and confers no rights.
Menu Control Questions
CustomValidator points to wrong control ControlCollection.Remove bug Radiobuttonlist (a custom control) selectedindexchanged event not firing in User Control Solution - Treeview Site Navigation without ShowExpandCollapse Redirecting to another page DropDownList Refuses To Show New SelectedValue Gridview update does not work Data Grid Printing FileUpload Control in ASP 2.0. |
|||||||||||||||||||||||