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
Hai Phan Thanh
NA
2
1.4k
insert Multi Rows from datagridview to another datagridview
Feb 21 2014 4:44 AM
Hi,
I 'm newbie with C#. But now i have a problem with my project.
i have form and contain 2 Datagridview. when i selected on checkbox or more rows in datagridview1-name:"dgv1" and then i push a buttom have name :"btRight" it'll tranfer data to next datagridview2 name:"dgv2".
[img]http://i3.upanh.com/2014/0221/09//58776582.data.jpg[/img]
My code:
private void btnRight_Click(object sender, EventArgs e)
{
List<object> destList = new List<object>();
foreach (DataGridViewRow row in dgv1.SelectedRows)
destList.Add(row.DataBoundItem);
dgv2.DataSource = destList;
}
i debug but it not run to this sentence :"destList.Add(row.DataBoundItem);" and then dgv2 doesn't have data.
Please give me solution.
thanks
Reply
Answers (
0
)
ASP.NET Dynamic nested button Event
I require assistant with for loop assingnment