Hello All,I am using XamWebGrid to disaply data. In XamWebGrid I have enabled Alternate rows.As per requirement, want to show some rows with different bg, so applying cell style in cellControl attach event of that grid.Bbut I could not able to apply style to alternate rows. as they have their inbuilt style (Think so). Is their any solution for this to overwrite inbuilt alternante row style..??Waiting for reply.Thanks you.
An example of the Conditional Formatting feature of xamGRid can be found here:
https://ko.infragistics.com/samples/silverlight
There is also a help topic that describes how to use conditional formatting:
http://help.infragistics.com/Help/Doc/Silverlight/2011.1/CLR4.0/html/xamGrid_Conditional_Formatting.html
Devin
Will you please send me sample code..?
Have you thought about using the grids conditional formatting feature for this rather than the cellAttached event. Its designed for exactly these kinds of scenarios and handles the styling of both normal and alternate rows for you, as well as managing the styling of rows as they enter and leave view, which you have to do manually if you use the cellattached event.
You would need to modify the appropriate VisualState in the CellStyle: This posting contains more information on that, as well as links into the help which describe how to do this.
https://ko.infragistics.com/community/forums/f/retired-products-and-controls/41630/xamweb-grid-alternate-row-style/231648#231648