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
ahmed elbarbary
NA
1.6k
277.7k
Select row from datagridview1 not display in datagridview2 a
May 9 2018 6:26 PM
Problem
Select row from datagridview1 not display in datagridview2 and show wrong value
IF I have two rows in datagridview1 and select second one it display as first meaning
if i have in datagridview1 two records
22
24
and select 22 first it move to datagridview2 success but 24 when select it from datagridview1 it display as 22 in datagridview2
why this idont know
I have two datagridviews
datagridview1 represent getselectrow
datagridview2 represent tbRes
my code as below in cell click event of first datagridview1
IndexValSold = Grid.CurrentRow.Index;
getselectrow = GetSelectedRowsVal();
foreach
(DataGridViewRow row
in
datagridview1.SelectedRows)
{
tbRes.ImportRow(getselectrow.Rows[row.Index]);
datagridview1.Rows.RemoveAt(row.Index);
//getselectrow.Rows.RemoveAt(row.Index);
}
tbRes.AcceptChanges();
datagridview12.DataSource = tbRes;
getselectrow.Rows.RemoveAt(IndexValSold);
Reply
Answers (
2
)
Have API written in C# need to develop a cmdlet
dynamically create word document with images in c# ?