From the attached GIFs and image i have two columns (Task and Progress Activity) that are supposed to fill when the form or gridview is resized but i realised it is only the second one that resizes. Is there something i am missing.
Also regarding the row auto resizing i have set all the necessary properties that i think are needed but it is not automatically resizing. Also check that for me.
Thanks.
Hi Nicholas,
this issue is fixed in Wisej release 3.0.10
Best regards
Frank
Hi Nicholas,
you can use the following workaround code to fix that behavior.
private void dataGridView1_ColumnWidthChanged(object sender, DataGridViewColumnEventArgs e) { this.dataGridView1.AutoResizeRows(); }
We´ll investigate to see if we can fix it generally.
Best regards
Frank
I have set the Autosize to false, rebuilt the application and run it several times on both production and test and the issue remains the same.
The link below points to a sample project with the same datagridview i am using:
https://drive.google.com/file/d/1AufUAri6mWblQUvLHOPkBPc5fKY7oyA1/view?usp=sharing
You would realise that at design time the grid works as expected (both columns resize as the form resizes) but when it is run one the last column resizes upon form resizing.
NB: Before posting anything here i must have tried resolving it at my end in any possible way without success (I have been trying to fix this particular one for 2 days now) and the documentation points to nothing on datagridview columns resizing that could help me solve the issue, so far as i can see.
Thanks
Hi Nicholas,
It appears that you’ve set the DataGridView’s AutoSize property to true, since it autosizes the whole DataGrid, it prevents it from resizing to fit the content.
I would suggest that you set the property to False, that should fix the issue. If it’s not the case then please provide us with a sample to investigate.
I would also suggest that you take a look at our documentation here: Documentation | Wisej
We have a plethora of information and examples that would certainly help you on your journey!
HTH,
Alaa
Please login first to submit.