Hi @Hobbyist_programmer ,
Try setting the width of Datagridview in 'DataBindingComplete' event.
Private Sub DataGridView1_DataBindingComplete(sender As Object, e As DataGridViewBindingCompleteEventArgs) Handles DataGridView1.DataBindingComplete
For Each col As DataGridViewColumn In DataGridView1.Columns
col.Width = ...
Next
End Sub
Best Regards,
Xingyu Zhao
*
If the answer is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.