ColWidthsChanged not getting called

I have hooked the ColWidthsChanged and ColWidthsChanging events. When I resize a column such that it''s width is 0 or less, neither of these events gets called. The column gets resized out of existence, but the RowsRemoved event doesn''t get called either... I''m trying to enforce a minimum column width. Is there some way to do this?

1 Reply

AD Administrator Syncfusion Team June 22, 2004 02:06 PM UTC

You can prevent the user from hiding a column using the ColsHiding event.
private void Model_ColsHiding(object sender, GridRowColHidingEventArgs e)
{
	//cannot hide cols 2 or 3
	if(e.From >=2 && e.To <= 3)
		e.Cancel = true;
}

Loader.
Up arrow icon