I have a gridview with a checkbox column that I would like to remain fixed.. but allow the other columns to auto size. I'm using the following code:
gvDocuments.MasterTemplate.AutoSizeColumnsMode = GridViewAutoSizeColumnsMode.Fill;
gvDocuments.Columns["Checked"].AutoSizeMode = BestFitColumnMode.None;
gvDocuments.Columns["Checked"].MaxWidth = 30;
gvDocuments.Columns["Checked"].MinWidth = 30;
gvDocuments.Columns["Checked"].Width = 30;
gvDocuments.Columns["Filename"].Width = 300;
gvDocuments.Columns["Description"].Width = 300;
gvDocuments.Columns["DocumentTypeDescription"].Width = 135;
gvDocuments.Columns["DocumentDate"].Width = 135;
If you look in the attached screenshot, there is a space between the "Checked" column and the "Description" column. I'm not sure what I'm doing wrong.