Hi guys.
I am using a UserComboBox with a DataGridView to show multiple columns. In order to have the columns resize proportional to the UserComboBox Width, I am setting the DataGridView Columns AutoSizeMode to “Fill”.
When doing this, the DataGridView shows up quite a bit larger than the UserComboBox itself.
dataGrid.Columns.Add("Name");
dataGrid.Columns["Name"].AutoSizeMode = Wisej.Web.DataGridViewAutoSizeColumnMode.Fill;
Could you think of a workaround for this one?
I have attached a sample and an image.
Thanks.
Ivan
(Wisej 2.2.52.0 – VS 2019 – C#)
Hi Ivan,
the fix is now included in our latest development build (2.2.54).
Best regards
Frank
It’s a strange issue caused by the dgv being measured before the theme is applied when it’s in a popup. It’s fixed internally already. As a workaround you can set the Fill mode when handling the Appear event of the dgv. In the appear handler you can also detach from the event so it’s executed only once.
Please login first to submit.