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
FrankMullin
NA
3
0
ComboxBox error?
Apr 30 2004 6:07 PM
I have linked a ComboBox to a DataView and set its DisplayMember and ValueMember. I have filled the DataTable from which the DataView is derived and set the RowFilter on the DataView. Ok. Now I pick a row in the ComboBox. All is okay. But if I now set the SelectedValue = Convert.DbNull (or SelectedIndex=-1) the control "overrides" this and changes SelectedIndex=0 and SelectedValue to the first row of the view. If I set SelectedValue=Convert.DbNull a second time, I get what I expect: SelectedIndex=-1. Any ideas why it behaves this way? Is there some other way to indicate you want to reset the ComboBox so no row is selected (and the displayed text is blank)?
Reply
Answers (
0
)
accessing TreeView from other class in .NET Remoting
Update External Application's Fields from Your Application?