Results 1 to 2 of 2

Thread: [RESOLVED] [2005] Copy and past selected cells and the column headers of a datagridview

  1. #1

    Thread Starter
    Frenzied Member dinosaur_uk's Avatar
    Join Date
    Sep 2004
    Location
    Jurassic Park
    Posts
    1,098

    Resolved [RESOLVED] [2005] Copy and past selected cells and the column headers of a datagridview

    Hi there,

    I have recently started dabbling with Access database with vb.net and have figure out how to use a datagridview.

    My question is, how do you copy a range (or all of the datagridview) and paste in word or excel and it to include the header. I can easily select all the cells i want to copy and paste with ctrl-c + ctrl-v but it does not copy the header.

    Please help

    many thanks
    If you find my thread helpful, please remember to rate me

  2. #2

    Thread Starter
    Frenzied Member dinosaur_uk's Avatar
    Join Date
    Sep 2004
    Location
    Jurassic Park
    Posts
    1,098

    Re: [RESOLVED] [2005] Copy and past selected cells and the column headers of a datagridview

    Silly me....

    just enable the ClipboardCopyMode to be "EnableAlwaysIncludeHeaderText"
    If you find my thread helpful, please remember to rate me

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width