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

GridControl.Modified

Thread ID:

Created:

Updated:

Platform:

Replies:

68992 Oct 8,2007 04:39 PM UTC Oct 8,2007 10:54 PM UTC Windows Forms 1
loading
Tags: GridControl
Aaron McIver
Asked On October 8, 2007 04:39 PM UTC

How can I ignore this flag when it comes via the col width property? I want to consider a col width/ row height adjustment as mothing more then just that...I will not be presisting this information.

haneefm [Syncfusion]
Replied On October 8, 2007 10:54 PM UTC

Hi Aaron,

How can I ignore this flag when it comes via the col width property?
>>>>>>>>>>>>>>>>>>>>>>>>
You can handle the ColWidhtChanging event of the grid and set the Modified property to false. Below are the codes:

public Form1()
{
InitializeComponent();
this.gridControl1.ColWidthsChanging += new GridRowColSizeChangingEventHandler(gridControl1_ColWidthsChanging);
this.gridControl1.RowHeightsChanging += new GridRowColSizeChangingEventHandler(gridControl1_RowHeightsChanging);
}
void gridControl1_ColWidthsChanging(object sender, GridRowColSizeChangingEventArgs e)
{
GridControl _grid = sender as GridControl;
_grid.Modified = false;
}
void gridControl1_RowHeightsChanging(object sender, GridRowColSizeChangingEventArgs e)
{
GridControl _grid = sender as GridControl;
_grid.Modified = false;
}

Best regards,
Haneef

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

;