I am using the grid and I have a number of unbound columns...
This only happens while the grid has grouping enabled, when I change a value of a cell it throws this error....
I can give more information if needed, I am going to try to throw together a condensed version to recreate it and I'll upload it here if need be. But I just wanted to see if there was an idea of what's wrong. I can't debug it because the exception happens inside an infragistic assembly.
Please let me know what could be wrong, thanks in advance.
Hi,
Thanks for the sample!
So the reason for the exception is your code right here:
private void XamGrid_CellExitedEditMode(object sender, CellExitedEditingEventArgs e)
{
this.XamGrid.InvalidateData();
}
Basically, calling InvalidateData causes all data operations to be performed again, which means all GroupBy info will be undone, and a new GroupBy operation will be done. And, considering where you're doing it, its causing other operations to try and perform while they're in an invalid state.
So, what exactly are you trying to accomplish? Note that InvalidateData is an expensive operation, and should only be done when absolutely necessary. Also, if your data implements INotifyPropertyChanged, there would be no need for it at all.
-SteveZ
I have created a replication....
Expand a group and start checking and unchecking check boxes...
You will get the exception in about 2-3 clicks
From the Stack Trace, i'm not really sure whats going on, so if you're able to provide a sample, that'd be really helpful.
Thanks,