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
venkii R
NA
13
18.6k
Windows Forms VB.NET : bind List box control values
Apr 15 2011 6:24 AM
Hi All,
I am working on windows Forms with Vb.net 2005. i have two Group boxes(like Panels in Asp.net) . one have controls like Text boxes and List box. other have gridView. when user select an item from Gridview, all the controls needs to fill with appropriate values. in some cases list box with multi select.
remaining all controls binded well in Edit mode.. but List box binding failed for me.
my code like this
For Each item As ListViewItem In lstState.Items.Item
For i As Integer = 0 To strArrayList.Length - 1
If strArrayList(i).Equals(item) Then
item.Selected = True
Else
item.Selected = False
End If
Next i
Next
it's giving error for me. plz send me the working code which wil resolve my issue.
Regards,
Venky
Reply
Answers (
1
)
How to Bind a record from datagridview to winforms controls?
Generic lists