Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
25
changing DataSource + IsEnable properties creates problem
posted

 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