CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Sep 2005
    Posts
    50

    Chaging A DataGrids Column Width

    I want my colums to have a varying width of columns how do i do that in the code.

    there is preffered column width however i want it to be able to set a specic value for each column

    thanks frank

  2. #2
    Join Date
    Feb 2005
    Location
    Israel
    Posts
    1,475

    Re: Chaging A DataGrids Column Width

    You will need to use DataGridColumnStyles.
    Here is my article about this:
    http://j1hammer.blogspot.com/2005/10...umnstyles.html
    If you will notice, the DataGridTextBoxColumn class has a Width property.

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

Featured