how to copy datagridview content with border into a clipboard?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • nirmalsingh
    New Member
    • Sep 2006
    • 218

    how to copy datagridview content with border into a clipboard?

    hi all,

    i am using datatable and dataset to assign data into datagridview. now i want to print data of datagridview contents. i used a method to copy datagridview content in a clipboard and to paste it in a print document. it is working fine but data is unaligned, so i think that if i apply borderstyle to datagridview and then copy to clipboard, but it doesnt work fine. anybody tell me the solution to resolve this.

    my another question is, is there is any way to select a particular column of datagridview on a button click event?

    note: i am using c#.net 2005

    thanx in advance
    with Cheers
    Nirmal
Working...