Thread ID: |
Created: |
Updated: |
Platform: |
Replies: |
9438 | Dec 17,2003 09:34 PM UTC | Dec 18,2003 05:36 AM UTC | WinForms | 3 |
![]() |
Tags: GridControl |
//code to subscribe to thr event in formload
CurrencyManager cm = (CurrencyManager)this.BindingContext[this.gridDataBoundGrid1.DataSource, this.gridDataBoundGrid1.DataMember];
IBindingList list = cm.List as IBindingList;
list.ListChanged += new ListChangedEventHandler(cm_ListChanged);
//sample event handler
//the SetCoveredCells method clears the current covered cells and then goes through the data and sets then aagin
private void cm_ListChanged(object sender, ListChangedEventArgs e)
{
if(e.ListChangedType == ListChangedType.Reset)
SetCoveredCells();
}
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.
This page will automatically be redirected to the sign-in page in 10 seconds.