Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 5513
  • Last Modified:

DevExpress XtraGrid column width problem

When my grid has no data it looks like Fig 1
When it has data, it looks like Fig2

I can't understand why the column header changes when data is placed in the grid.
I've set ColumAutoFit to False, set Column's MinimumWidth to the same value as their width but it still does it.
The images are 16x16 and the column width is 22
Although it looks like the header HEIGHT also increases, it is the header captionsthat seem to shift position
as shown in Fig3

Any ideas?

4.png
0
Eddie Shipman
Asked:
Eddie Shipman
1 Solution
 
Eddie ShipmanAll-around developerAuthor Commented:
Turn off filtering/sorting on those columns and they will look correctly.
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now