0

I have a WinForm application with a DevExpress GridView. I have set the width of each column manually in the designer, but they doesn't seen to have followed the sizes I have set. I thought the width might was measured in pixels.

I think the Grid is resizing the columns in some random way.

  • The grid probably has an auto size property of some sort, you'll need to disable it. – Mike Perrenoud Dec 17 '13 at 17:51
  • I have set OptionsView.ColumnAutoWidth to false, but to no avail. – Jack Antares Dec 17 '13 at 17:52
  • I'm sorry, I don't know the `DevExpress` components very well, but generally speaking with those types of components those properties are at *many levels* and you have to find the right level. – Mike Perrenoud Dec 17 '13 at 17:53
  • When I set this property to false, it made some effect, the grid was not scrolling horizontally, now it is scrolling, but the sizes are not correct anyway. – Jack Antares Dec 17 '13 at 17:55
  • have you tried playing with the Layout of the Grid View? You can set column width from Layout Tab (when you Run Designer) – Milen Dec 17 '13 at 17:56
  • Well, the only properties of the grid I have changed are: EnableMasterViewMode = false, ShowIndicator = false, ShowGroupPanel = false. I'm drawing a checkbox dynamically in one column header, but I don't think this is the problem. – Jack Antares Dec 17 '13 at 17:59
  • @Pavlov, it worked! It's strange that setting by the designer layout tab it works, but setting manually don't. But it solved my problem, thanks. – Jack Antares Dec 17 '13 at 18:06

1 Answers1

0

You can set the Column width using the Layout Tab on DevExpress Designer.

Milen
  • 8,697
  • 7
  • 43
  • 57