Datagrid column width

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Eva

    #1

    Datagrid column width

    How do i indivually change the width of a datagrid
    coloumn?

    I am currently using the PrefferedColoum nWidth property,
    but due to space restrictions i do not want all the
    columns at the same width.

    Any help is appreciated.
  • Paul Clement

    #2
    Re: Datagrid column width

    On Sun, 16 Nov 2003 05:30:58 -0800, "Eva" <s@i> wrote:

    ¤ How do i indivually change the width of a datagrid
    ¤ coloumn?
    ¤
    ¤ I am currently using the PrefferedColoum nWidth property,
    ¤ but due to space restrictions i do not want all the
    ¤ columns at the same width.
    ¤

    Have you tried Width property of the DataGridColumnS tyle class?


    Paul ~~~ pclement@amerit ech.net
    Microsoft MVP (Visual Basic)

    Comment

    • Eric Cadwell

      #3
      Re: Datagrid column width

      Tip 5.31

      Get detailed answers to common queries about Syncfusion Windows Forms components covering installation, features, licensing, and developer support.


      HTH;
      Eric Cadwell



      Comment

      • Paul Clement

        #4
        Re: Datagrid column width

        On Mon, 17 Nov 2003 08:08:55 -0800, "Eva" <anonymous@disc ussions.microso ft.com> wrote:

        ¤ hi Paul,
        ¤ Is this set through code or through a property on the IDE?
        ¤
        ¤ if its set through code do u have an example i could see?
        ¤

        See if the following helps:

        HOW TO: Programmaticall y Set the DataGrid Column Width to the Longest Field by Using Visual Basic
        ..NET



        Paul ~~~ pclement@amerit ech.net
        Microsoft MVP (Visual Basic)

        Comment

        Working...