GridView multiple DDL

C

Chuck P

I 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.
 
W

Walter Wang [MSFT]

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 ([email protected], 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.
 
C

Chuck P

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.
 
W

Walter Wang [MSFT]

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 ([email protected], 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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,787
Messages
2,569,629
Members
45,331
Latest member
ElaneLyttl

Latest Threads

Top