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. Mobile Development
  3. Mobile
  4. Increase width of datagrid

Increase width of datagrid

Scheduled Pinned Locked Moved Mobile
question
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.
  • R Offline
    R Offline
    Rupesh Kumar Swami
    wrote on last edited by
    #1

    hi all, i m using datagrid to show data.Each column of this datagrid have fixed length(width). How can i increase the width of particular column?

    Rupesh Kumar Swami Software Engineer, Integrated Solution, Bikaner (India) My Company

    D 1 Reply Last reply
    0
    • R Rupesh Kumar Swami

      hi all, i m using datagrid to show data.Each column of this datagrid have fixed length(width). How can i increase the width of particular column?

      Rupesh Kumar Swami Software Engineer, Integrated Solution, Bikaner (India) My Company

      D Offline
      D Offline
      dandi18
      wrote on last edited by
      #2

      you can use TableStyles: For Example: Dim ts As New DataGridTableStyle() ts.MappingName = "TblEmployees" GrdEmployees.TableStyles.Clear() 'GrdEmployees=Name of your datagrid 'Define all your columns Dim ColID As New DataGridTextBoxColumn With ColID .MappingName = "EmployeeID" .HeaderText = "ID" .Width = 100 End With With ts.GridColumnStyles .Add(ColID) End With GrdMoves.TableStyles.Add(ts) Hope it helped :laugh:

      R 1 Reply Last reply
      0
      • D dandi18

        you can use TableStyles: For Example: Dim ts As New DataGridTableStyle() ts.MappingName = "TblEmployees" GrdEmployees.TableStyles.Clear() 'GrdEmployees=Name of your datagrid 'Define all your columns Dim ColID As New DataGridTextBoxColumn With ColID .MappingName = "EmployeeID" .HeaderText = "ID" .Width = 100 End With With ts.GridColumnStyles .Add(ColID) End With GrdMoves.TableStyles.Add(ts) Hope it helped :laugh:

        R Offline
        R Offline
        Rupesh Kumar Swami
        wrote on last edited by
        #3

        Thanks a lot. its work for me.

        Rupesh Kumar Swami Software Engineer, Integrated Solution, Bikaner (India) My Company

        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