|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
|
|
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
|
|||
|
|||
|
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 |
![]() |
| Viewing: Dev Articles Community Forums > Programming > General Programming Help > Binding data to textbox command |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|