Click here to Skip to main content
15,936,395 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Dear All,

I am trying to bindind ComboBox using webservice but not able to bind.

XAML code :-
<combobox itemssource="{Binding ElementName=MyMap, Path=Layers[IncidentsLayer].LayerInfo.Fields}" name="CB_Crop" grid.column="3" height="30" selectionchanged="CB_Crop_SelectionChanged">
SelectedValue="{Binding Path=SelectedStateCode, Mode=TwoWay}" >
<combobox.itemtemplate>
<datatemplate>
<textblock text="{Binding CROP}" width="120" fontfamily="Comic Sans MS">



====================================
XAML.cs
public MainPage()
{
Product_details.ShowAllDataClient client = new ShowAllDataClient();
client.CroplistCompleted += new EventHandler<croplistcompletedeventargs>(client_CroplistCompleted);
client.CroplistAsync();
}

void client_CroplistCompleted(object sender, CroplistCompletedEventArgs e)
{
CB_Crop.ItemsSource = e.Result;
}



send me some link to come out from this problem.
PLEASE HELP ME....
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900