How can I copy a datagridview to a gridview.. I only ask b/c I need to use the rendercontrol and its not available using datagridview. And Gridview is not an option for me to use in a windows application.. BUT the class is.. very odd but anyway. All the colors formatting etc.. I need to pass to the gridview. Any ideas?
CaptainRon
0
Newbie Poster
Recommended Answers
Jump to Postif you mean copy value from DGV1 to DGV2, here is what i do :
DataGridView2.Rows.Clear() For i As Integer = 0 To DataGridView1.Rows.Count - 2 DataGridView2.Rows.Add(DataGridView1.Rows(i).Cells(0).Value) Next
NOTE :
1. Allow user to add row
2. i do that with just one column, so if …
All 2 Replies
Reply to this topic
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.