Quantcast
Channel: Windows Forms Data Controls and Databinding forum
Viewing all articles
Browse latest Browse all 2535

Datagridview's Column width changed according to another Datagridview

$
0
0

Hello

I have 2 datagridview .I want to change width of a column of datagriview while I'm changing the width of a column of the other datagridview with the mouse. I tried this code but it doesn't work.

PrivateSub DataGridView1_ColumnMinimumWidthChanged(sender AsObject, e As System.Windows.Forms.DataGridViewColumnEventArgs)Handles DataGridView1.ColumnMinimumWidthChanged
    HeaderGrid.Columns(e.Column.Index).Width = e.Column.WidthEndSub

Regards


Best Regards...Please mark as answer if my post is helpful http://yosr-jemili.blogspot.com


Viewing all articles
Browse latest Browse all 2535

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>