How to dynamically change the color of rows in a UXGridView

4 replies. Last post: June 28, 2012 6:31 PM by Yudi
Tags :
  • (None)

For the purposes of highlighting - how can I modify the background color of UXGridView rows, as I would using a converter?


Thanks

All Replies

Yudi Member

I enclosed one simple sample of UXGridView. The sample shows how to do the styling, cell styling, based on the value of a cell. The ItemsSource of UXGridView is set to Products table of Northwind database. The styling will set the foreground color of a row based on the value of “Discontinued” column.

Please have the sample evaluated on your end and kindly let us know if the scenario of the sample is not what you’re after.

1 attachment

Hi, I readyour sample and also the RowStyle sample in your Live Demos. The problem is that the UXGridView only calls the selctors at the render time of the grid. I need a way to change the background color of a row without refreshing the data. In my senario, I want to change the row style of a grid based on a temporary staus, withough saving anything in DB or manuplating its data collection. Is there anyway to access to the UXGridViewRow object of a selected item?


Thanks

Hello,

Please give us a little time. We need to discuss your scenario with our developer teams. I will get back to you soon.

Regards,
Handy

Yudi Member

Apologize for the delay in sending this.

Could you please confirm whether the Cell Style Selector suitable with your scenario? UXGridView allow you to customize the style of each individual cell based on custom logic through the CellStyleSelector feature. In this sample, UXGridView shows a different style for UnitsInStock cell with value less than 20 and also different style for discontinued product.

Hope this helps.

All times are GMT -5. The time now is 11:24 PM.
Previous Next