Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. DataGrid Change size of colum

DataGrid Change size of colum

Scheduled Pinned Locked Moved C / C++ / MFC
tutoriallearning
3 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • N Offline
    N Offline
    NorGUI
    wrote on last edited by
    #1

    Hello, I am working with CDataGrid and I can not found how to change size of each colunm ! From resource I can change the size but it will be aplicated on all colunm but I need that each colunm have a other size! Thank you to give me some tip !

    AutreChien

    S 1 Reply Last reply
    0
    • N NorGUI

      Hello, I am working with CDataGrid and I can not found how to change size of each colunm ! From resource I can change the size but it will be aplicated on all colunm but I need that each colunm have a other size! Thank you to give me some tip !

      AutreChien

      S Offline
      S Offline
      sujtha
      wrote on last edited by
      #2

      Datagrid control, Subclass the datagrid header control. In that subclass, the header structure having column width properties. Here you can change for each and every column width.

      N 1 Reply Last reply
      0
      • S sujtha

        Datagrid control, Subclass the datagrid header control. In that subclass, the header structure having column width properties. Here you can change for each and every column width.

        N Offline
        N Offline
        NorGUI
        wrote on last edited by
        #3

        I have check the header and the only fonction that I have founded is : void put_DefColWidth(float newValue) { static BYTE parms[] = VTS_R4 ; InvokeHelper(0x10, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms, newValue); } but there no other fonction to change each colunm ! header files name is DataGrid1.h !

        AutreChien

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups