Headerwidth in DataGridView

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • =?Utf-8?B?VGhvcnN0ZW4gbW9lbGxlcg==?=

    #1

    Headerwidth in DataGridView

    Hi,

    i have a datagridview with a column named position. it contains a
    positionnumber, shorter than the headertext. The result is, that i can't see
    the full text.

    I tried everything to increase the width, but nothing helped.

    Can anybody help me out of this??

    Thanks,
    Thorsten
  • Mateusz Pobudejski

    #2
    Re: Headerwidth in DataGridView

    Thorsten moeller pisze:
    Hi,
    >
    i have a datagridview with a column named position. it contains a
    positionnumber, shorter than the headertext. The result is, that i can't see
    the full text.
    >
    I tried everything to increase the width, but nothing helped.
    >
    Can anybody help me out of this??
    >
    I am not sure if I have understood you well, but maybe you should take a
    look at AutoSizeMode property:

    dgv.Columns["position"].AutoSizeMode =
    DataGridViewAut oSizeColumnMode .ColumnHeader;


    --
    Mateusz Pobudejski

    Comment

    Working...