Click here to Skip to main content
15,891,431 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hi! all
How can I export specific data from a row in datagridview into a specific place in the word template table instead of exporting the whole datagridview?

Please help me out

What I have tried:

I am able to export entire datagridview contents
Posted
Updated 4-Aug-19 8:11am
Comments
Richard MacCutchan 4-Aug-19 6:17am    
Copy the relevant rows to a new datagridview and export that.

1 solution

have you had a look at this?

How to: Get the Selected Cells, Rows, and Columns in the Windows Forms DataGridView Control | Microsoft Docs[^]

and I am not sure how you are writing to Word so I have included a google link

Google - write data to Word[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900