TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Eugen
NA
16
0
WPF.Problem with Combobox.SelectedValue
May 24 2010 4:30 AM
I have a problem with Combobox.SelectedValue
when I use this property I don't have the result what this property must return
for eg.:
I have in WPF:
<ComboBox Grid.Row="5" Grid.Column="2" Height="20" Visibility="Visible" Margin="3" Name="cb_client_cab" ItemsSource="{Binding}" >
<ComboBox.ItemTemplate>
<DataTemplate>
<StackPanel Orientation="Horizontal">
<TextBlock Text="{Binding nr_cabinet}" Width="50" />
</StackPanel>
</DataTemplate>
</ComboBox.ItemTemplate>
</ComboBox>
I have in C#:
cb_client_cab.SelectedValue.ToString()
The result:
"System.Data.DataRowView"
but not : a value from database , combobox was populated with success, I can choose anything !!!
Help me please!
Reply
Answers (
2
)
DataGrid validation of DataServices data - how??
printing on click button