Results 1 to 2 of 2

Thread: Return of the Datagrid!

  1. #1

    Thread Starter
    New Member
    Join Date
    Mar 2003
    Posts
    2

    Question Return of the Datagrid!

    Hello All

    I am now into my third day of vb.net programming and I have a question.

    Does anyone know how to specify the width of the individual colums in a datagrid?

    It is really driving me nuts!!!!

    Any help would be greatly appreciated.

    Cheers

    Steve

  2. #2
    Addicted Member CoMMiE's Avatar
    Join Date
    Jul 2000
    Location
    Malaysia, Kuala Lumpur
    Posts
    179
    dim dgTxtTextbox as new datagridTextboxColumn
    dim dgTablestyle as new datagridtableStyle

    with dgTxtTextbox
    .MappingName="Name"
    .width=100

    End With

    dgTablestyle .gridColumnStyle.add(dgTxtTextbox)

    dgDatagrid.tableStyle.add(dgTablestyle)

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