Click here to Skip to main content
15,912,021 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
QuestionProblem in WSDL Webservice????? Pin
Nithin Krishna12-Jan-07 18:26
Nithin Krishna12-Jan-07 18:26 
AnswerRe: Problem in WSDL Webservice????? Pin
Junaid Kazi12-Jan-07 20:35
Junaid Kazi12-Jan-07 20:35 
GeneralRe: Problem in WSDL Webservice????? Pin
Nithin Krishna12-Jan-07 22:35
Nithin Krishna12-Jan-07 22:35 
GeneralRe: Problem in WSDL Webservice????? Pin
Junaid Kazi13-Jan-07 0:40
Junaid Kazi13-Jan-07 0:40 
GeneralRe: Problem in WSDL Webservice????? Pin
Nithin Krishna13-Jan-07 0:49
Nithin Krishna13-Jan-07 0:49 
GeneralRe: Problem in WSDL Webservice????? Pin
Junaid Kazi13-Jan-07 1:04
Junaid Kazi13-Jan-07 1:04 
QuestionAutomated installation for windows services Pin
Draqonis12-Jan-07 9:27
Draqonis12-Jan-07 9:27 
QuestionXaml: Data Binding Two Controls To One Source Pin
Jm6k12-Jan-07 8:54
Jm6k12-Jan-07 8:54 
Hello All,

I'm running into a problem and I was wondering if anyone could help me out. I'm trying to data bind two combo boxes to one data table. I've got it to work, however when I change the selection of one combo box, the other one changes as well. I've seen a lot of documentation on how to solve this problem in the 2.0 framework, however, I've not seen any help on this topic so far.

I would like it so that the changes between the combo boxes are independant of each other (i.e. combobox1 can select item 1, and combobox2 can select item 2)

Here is my code...

C#===================================================

...In the my Page object's .xaml.cs file...

DataTable table = new DataTable("table1");

DataColumn lName = new DataColumn("FullName", typeof(string));
table.Columns.Add(lName); //Add Column to Table

//Create Row
DataRow r1 = table.NewRow();

//Fill Data For Row
r1["FullName"] = "smith, joe";

table.Rows.Add(r1);

DataContext = table; //set the Page object's Data Context to the Data Table


Xaml==================================================


<Page.Resources>
<DataTemplate x:Key="comboTemplate">
<TextBlock Text="{Binding Path=FullName}" />
</DataTemplate>
</Page.Resources>

<ComboBox Name="combo1"
IsSynchronizedWithCurrentItem="True"
ItemsSource="{Binding}"
ItemTemplate="{StaticResource comboTemplate}"
/>

<ComboBox Name="combo2"
IsSynchronizedWithCurrentItem="True"
ItemsSource="{Binding}"
ItemTemplate="{StaticResource comboTemplate}"
/>

=====================================================

Thank you in advance for your time. Also, I didn't know if this was the right forum to post this, sorry if I was wrong!

jm6k

The Jazz Master 6000

DJ Badknees

Parma Grind Crew - www.geocities.com/parmagrindcrew
AnswerRe: Xaml: Data Binding Two Controls To One Source Pin
Phillip M. Hoff13-Jan-07 12:07
Phillip M. Hoff13-Jan-07 12:07 
QuestionCustom Designer Loader Pin
Octai12-Jan-07 3:24
Octai12-Jan-07 3:24 
AnswerRe: Custom Designer Loader Pin
Pete O'Hanlon12-Jan-07 4:36
mvePete O'Hanlon12-Jan-07 4:36 
GeneralRe: Custom Designer Loader Pin
Octai12-Jan-07 6:02
Octai12-Jan-07 6:02 
GeneralRe: Custom Designer Loader Pin
Pete O'Hanlon12-Jan-07 8:30
mvePete O'Hanlon12-Jan-07 8:30 
QuestionAt the place of the control its giving a red mark Pin
indian14311-Jan-07 21:13
indian14311-Jan-07 21:13 
AnswerRe: At the place of the control its giving a red mark Pin
Pete O'Hanlon11-Jan-07 22:38
mvePete O'Hanlon11-Jan-07 22:38 
GeneralRe: At the place of the control its giving a red mark Pin
indian14311-Jan-07 23:29
indian14311-Jan-07 23:29 
AnswerRe: At the place of the control its giving a red mark Pin
Dave Kreskowiak12-Jan-07 6:08
mveDave Kreskowiak12-Jan-07 6:08 
GeneralRe: At the place of the control its giving a red mark Pin
indian14315-Jan-07 20:12
indian14315-Jan-07 20:12 
GeneralRe: At the place of the control its giving a red mark Pin
Dave Kreskowiak16-Jan-07 2:34
mveDave Kreskowiak16-Jan-07 2:34 
AnswerRe: At the place of the control its giving a red mark Pin
Christian Graus13-Jan-07 15:21
protectorChristian Graus13-Jan-07 15:21 
GeneralRe: At the place of the control its giving a red mark Pin
Dave Kreskowiak13-Jan-07 16:44
mveDave Kreskowiak13-Jan-07 16:44 
GeneralRe: At the place of the control its giving a red mark Pin
Christian Graus13-Jan-07 17:38
protectorChristian Graus13-Jan-07 17:38 
GeneralRe: At the place of the control its giving a red mark Pin
Dave Kreskowiak14-Jan-07 4:29
mveDave Kreskowiak14-Jan-07 4:29 
GeneralRe: At the place of the control its giving a red mark Pin
Christian Graus14-Jan-07 8:55
protectorChristian Graus14-Jan-07 8:55 
GeneralRe: At the place of the control its giving a red mark Pin
indian14315-Jan-07 20:43
indian14315-Jan-07 20:43 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.