SunQuest
 
           General Programming Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 
Go Back   Dev Articles Community ForumsProgrammingGeneral Programming Help

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:
Stay one step ahead of the competition. Evaluate and give feedback on some of the hottest web development tools on the market today. Make your opinion heard! Click Here
  #1  
Old February 5th, 2003, 09:31 AM
YossiBaram YossiBaram is offline
Junior Member
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jun 2002
Posts: 3 YossiBaram User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Unhappy Binding data to textbox command

Hi helper,
I have 2 tables as follows:
Product table:
Product_Num LabelType
1111 12
2222 23
3333 10
4444 22
etc....
Data Type table:
Id Product_Num Data_Type Data
1 1111 1 20.3
2 1111 2 33.6
3 1111 3 10
4 2222 1 15
etc....

I have 3 controlls on the form and I need them to be bind with 'Data' column of Data Type table.
Each text control should show different data according to the Data_Type value.
How can it be done???
I tried the following:

DataView dv1 = new DataView();
dv1.Table = dataSet.Tables["Data_Type];

dv1.AllowDelete = true;
dv1.AllowEdit = true;
dv1.AllowNew = true;
dv1.RowFilter = " Data_type = '1'";
dv1.RowStateFilter = DataViewRowState.OriginalRows;
dv1.Sort = "Data";
txtPrice1.DataBindings.Add("Text", dv1, "Data");

I get empty text in the controls.
Why can't I Use the DataView? it should be perfect for me.

Please advise
Yossi

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsProgrammingGeneral Programming Help > Binding data to textbox command


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 6 hosted by Hostway