Results 1 to 2 of 2

Thread: How to Copy/Paste

  1. #1
    Junior Member
    Join Date
    Jul 2015
    Posts
    1

    How to Copy/Paste

    Hello,

    I have an object of CGXGridView

    and the code is

    SetStyleRange( CGXRange( 0, nSelectionIndex +X) ),
    CGXStyle()
    .SetValue( strLabel )
    .SetControl( GX_IDS_CTRL_STATIC )
    .SetVerticalAlignment( DT_VCENTER )
    .SetHorizontalAlignment( DT_CENTER )
    .SetFont(
    CGXFont()
    .SetSize( 10 ) // bigger font
    .SetBold( TRUE )
    )
    .SetInterior(
    CGXBrush()
    .SetColor( RGB( 192, 192, 192 ) )
    )
    .SetDraw3dFrame( gxFrameRaised )
    .SetBorders( gxBorderLeft, CGXPen().SetStyle( PS_SOLID ) )
    .SetBorders( gxBorderBottom, CGXPen().SetStyle( PS_SOLID ) )
    .SetEnabled( FALSE ) );

    Is there a way to be able to copy/paste the heading ? The rest of the information can be copy/pasted to Excel except for the heading.

    Thanks.

  2. #2
    you have to change the cell to normal format, otherwise the data will be shown different than what u are copying

Posting Permissions

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