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
770
Selected / Active cell backgroundcolor problem
posted

Hello,

I've got a problem using XamDataGrid. 

I add rows dynamically in code behind by adding items in my BindingList which is the DataSource for the grid. 

When I add a row, i want all the others rows to be not active / not selected. 

I use this code : 

if (XamDataGrid1.SelectedItems != null && XamDataGrid1.SelectedItems.Records != null)

{

    XamDataGrid1.SelectedItems.Records.Clear();

}

foreach (DataRecord dr in XamDataGrid1.Records)

 {

dr.IsActive = false;

dr.IsSelected = false;

 }

And then, I make my new record active / selected. 

It's ok when I look at records in my xamdatagrid. 

But, on screen, the previous selected or activated records keep a blue background color which is a little bit lighter than the real selected color and I dont understand why. 

What I would like is my previous selected or activated records to have a white background color. 

 

Parents
No Data
Reply
  • 138253
    Offline posted

    Hello,

     

    I am just checking the progress of this issue and was wondering if you managed to achieve your goal or if you need any further assistance on the matter. 

Children
No Data