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.
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

ColWidthsChanged not getting called

Thread ID:

Created:

Updated:

Platform:

Replies:

15563 Jun 22,2004 01:27 PM UTC Jun 22,2004 02:06 PM UTC Windows Forms 1
loading
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;
}

CONFIRMATION

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.

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

;