Hi,
I am adding and removing Items from DataSource of XamDataGrid like this:
this.Dispatcher.BeginInvoke(System.Windows.Threading.DispatcherPriority.Normal, new DispatcherOperationCallback(delegate {
adding and removing items here............
}
But its doesn't work. Let me know how can I resolve this?
Thanks,
Ammad.
Hi, I am a newbiew to wpf and know very little.I have been using Ultrawingrid for the past 2 years. But now , in wpf ,we have to use xamdatagrid. I have a view file and a model file (using MVVM) . I have a xamcomboeditor and xamdatagrid in my screen and they are bound to collections..please help me in solving this issues :
1) I have an edit button and on click of edit , i need to make the fields editable.I have set the allowedit property for each field to be false initaily as the requiement says that on click of edit only i need to edit the row..please help
Hello Ammad,
Thank you for your post. I have been looking into it and I can say that your collection that the XamDAtaGrid’s DataSource is bound to, should implement INotifyCollectionChanged interface( such as ObservableCollection), so the XDG could update. Could you please try your sample with ObservableCollection as DataSource and if the issue still exists, could you please send me an isolated sample project, so I can investigate it further for you.
Looking forward for your reply.
Just want to add that, new items are there in DataSource and removed ones are not there but XamDataGrid is not refereshing itself to reflect the changes in it.
Thanks.
I think XamDataGrid is not refreshing itself.