Hi all,
Currently I'm using xamDataGrid 8.1 Express edition, so far I found out that this a nice component. And I want to suggest my company to buy the non-Express edition for our current project.
However rignt now I'm having problem with it.
Here's how to repro the problem: Disabled the xamDataGrid, change the datasource, re-enabled the xamDataGrid.
And here's the code snipped:
List<A> listA = new List<A>(); A a = new A(); a.stringA = "testA1"; listA.Add(a); a = new A(); a.stringA = "testA2"; listA.Add(a); // bind the xamdatagrid xamDataGrid1.DataSource = listA; // disable the xamdatagrid xamDataGrid1.IsEnabled = false; A a2 = new A(); a2.stringA = "added new"; listA.Add(a2); // rebind the xamdatagrid xamDataGrid1.DataSource = null; xamDataGrid1.DataSource = listA; // re enable the datagrid xamDataGrid1.IsEnabled = true;
The problem is that some of the row are still disabled, cannot be clicked, but can access those row using the keyboard up and down keys.
Is this a bug or did I do something wrong? since I'm new in WPF and xamlDataGrid. :P
Any help or work arround would be really appreciated... and sorry for my English :P
Thanks in advance
Hi,
That looks like a bug, thanks for pointing it out. To work around it, you can either not disable the grid when reseting the data source, or set the grid's RecordContainerGenerationMode property to LazyLoad.
Thanks,
Josh
Hi Josh,
Thank you for your solution. It works fine. However lately I found out that with RecordContainerGenerationMode property set to LazyLoad, I facing a problem with the scrollbar.
The scrollbar (gradually) disapear when I scroll down to the bottom and then scroll up the grid...
Is there any other work arround for this problem?
Thanks