Home Forums WinForms controls Xceed Grid for WinForms Resizing Columns in a grid Reply To: Resizing Columns in a grid

Xceed Support
Member
Post count: 5658

You can simply subscribe to the WidthChanged event on each column.

<code>
private void Form1_Load( object sender, EventArgs e )
{
//Load data

foreach( Column col in gridControl1.Columns )
{
col.WidthChanged += new EventHandler( col_WidthChanged );
}
}

void col_WidthChanged( object sender, EventArgs e )
{
//

</code>

Imported from legacy forums. Posted by CharlesB (had 183 views)