Link to home
Start Free TrialLog in
Avatar of emi_sastra
emi_sastra

asked on

DUPLICATE A ROW TO ANOTHER ROW OF A DATAGRIDVIEW

Hi All,

I want to duplication a row to another row of a datagridview.

Row Data
0      Fill with data
1      Fill with data
2      Empty Row

How could I copy row 0 to row 2 ?

Thank you.
ASKER CERTIFIED SOLUTION
Avatar of Shahan Ayyub
Shahan Ayyub
Flag of Pakistan image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of emi_sastra
emi_sastra

ASKER

Hi Shahan,

The empty row was already there.
No need to add a new row, after copy then add a new empty row.

Thank you.

If you have a data-bound DataGridView, you should be changing rows in the underlying DataSource (usually a DataTable, though it could be different).
Hi ElrondCT,

Yes, I have bound it to a datatable.
I don't get your point.

Thank you.
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Hi All,

Thank you very much for your hep.