We load the columns widths when we start are application. When we change off of a grid or close the application we save the column widths in order to restore to the size the user left them.
A problem is if the user sorts a column on the grid and then we save the column width the widths have increased by 12.
foreach (var col in grid.TableDescriptor.Columns)
{
xw.WriteAttributeString("Width", col.Width.ToString());
}
And as the user repeatly brings up and down the application the column widths grow.
How can I fix this or get the column width excluding the 12 pixels...I assume for some reason this is adding in an icon size or something funny like that.