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. (Last updated on: June 24, 2019).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

ColWidthsChanged not getting called

Thread ID:





15563 Jun 22,2004 01:27 PM UTC Jun 22,2004 02:06 PM UTC WinForms 1
Tags: GridControl
Pete Davis
Asked On June 22, 2004 01:27 PM UTC

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?

Administrator [Syncfusion]
Replied On 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;


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

Live Chat Icon For mobile
Live Chat Icon