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. pocket pc datagrid in vb.net

pocket pc datagrid in vb.net

Scheduled Pinned Locked Moved Mobile
csharpcsswpfwcf
1 Posts 1 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.
  • E Offline
    E Offline
    ejaz_pk
    wrote on last edited by
    #1

    I am using datagrid in my vb.net (pocket pc) application. I am using the following code to set the tablestyle to the datagrid to adjust the column width

      Dim ts As DataGridTableStyle = New DataGridTableStyle
    
        ts.MappingName = "Products"
    
        Dim Product As DataGridTextBoxColumn = New DataGridTextBoxColumn
        Product.MappingName = "Product"
        Product.HeaderText = "Product"
        Product.Width = 130
        ts.GridColumnStyles.Add(Product)
    
        Dim Qty As DataGridTextBoxColumn = New DataGridTextBoxColumn
        Qty.MappingName = "Quantity"
        Qty.HeaderText = "Quantity"
    
        Qty.Width = 75
        ts.GridColumnStyles.Add(Qty)
    
        Me.DataGrid1.TableStyles.Add(ts)
    
        Me.DataGrid1.TableStyles(0).GridColumnStyles(0).Width = 100
    

    After binding the datagrid I use this code to set the datagridtablestyle but it only show my one column me nothing even it does not return the values in the datagrid with original tablestyle. It show only row header in the grid but does not show the columns. Any idea how I can solve this problem???? Thanks In advance

    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