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
naveen
NA
54
77.6k
How to bind data to multiple columns of WPF listview from VB.net code
Mar 5 2010 7:29 AM
Hi all
Im using VB.net and WPF .
In a WPF page ,i have created a listview to show records added.
In XAML,i have
<ListView Margin="172,222,276,213" Name="ListViewDonotCall">
<ListView.View>
<GridView>
<GridViewColumn Header="Name" Width="150" />
<GridViewColumn Header="Mobile Number" Width="150" />
</GridView>
</ListView.View>
</ListView>
But in vbcode i need to bind datas to its items
i have tried like
--------------------------------------------------------
i = ListViewDonotCall.Items.Count
ListViewDonotCall.Items.Add(TextBoxName.Text.ToString())
--->
ListViewDonotCall.Items(i).SubItems.Add(TextBoxMobileNo.Text.ToString())
i = i + 1
---------------------------------------------------------
But in the arrow line ,it gives error,sub item error
How can i bind data to multiple columns
Thanks in advance
Naveen
Reply
Answers (
1
)
how to change ok/cancel values of confirmation dialog box to yes/no
how do to network packet analysing and capturing in c# windows application