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

GridControl.Modified

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.

1 Reply

HA haneefm Syncfusion Team 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

Loader.
Live Chat Icon For mobile
Up arrow icon