We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
close icon

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.
Live Chat Icon For mobile
Up arrow icon