.NET Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 
Go Back   Dev Articles Community ForumsProgramming.NET Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
  #1  
Old April 1st, 2005, 05:02 PM
MTmace MTmace is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Apr 2005
Posts: 1 MTmace User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 m 44 sec
Reputation Power: 0
Question Databinding to 2 data sources

I have a dropdown control that is getting populated by a dataview.
When I select a value out of that dropdown control I would like the datarow that that selectd value relates to to populate the a form.
I tried to bind the text boxes to the same dataview but I get an error. Is there any way I can accomplish this?

Thanks,

MTmace

Reply With Quote
  #2  
Old April 15th, 2005, 01:46 AM
ZLA ZLA is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Dec 2004
Location: Saint Louis, MO
Posts: 13 ZLA User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 h 46 m 37 sec
Reputation Power: 0
I tend to do this type of stuff in a brute force way. There may be easier ways to do it. I would store the dataview in a form level variable. In the dropdown's OnSelectedIndexChanged event, I would then set the dataview's rowfilter property to filter the selected row and then rebind the form manually.

I've that type of thing in ASP.NET.

HTH.

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsProgramming.NET Development > Databinding to 2 data sources


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 3 hosted by Hostway
Stay green...Green IT