Results 1 to 2 of 2

Thread: datagrid - column widt

  1. #1

    Thread Starter
    New Member
    Join Date
    Jul 2004
    Posts
    4

    Question datagrid - column widt

    Hi,

    At design time I can set the column width. But this is set for all columns.

    I want some columns smaller than others. Does anyone know how I can do this?

    Thanks, kleedje

  2. #2
    Frenzied Member mar_zim's Avatar
    Join Date
    Feb 2004
    Location
    Toledo Cebu City.
    Posts
    1,416
    this one?
    VB Code:
    1. Dim t As New DataGridTableStyle()
    2.         t.MappingName = "mzim Table"
    3.  
    4.         Dim name As New DataGridTextBoxColumn()
    5.         name.Width = 100
    6.         name.MappingName = "ID"
    7.         name.HeaderText = "ID no."
    8.         name.NullText = ""
    9.         t.GridColumnStyles.Add(name)

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