c# - Setting one Datagrid row to be a certain colour -
this problem not intuitive me i'm not entirely sure start.
i wanted change fifth row of datagrid have grey background.
<telerik:radgridview itemssource="{binding quarterlyinfo, isasync=true}" showgrouppanel="false" selecteditem="{binding selecteditem}"> <telerik:radgridview.rowstyle> <style targettype="telerik:gridviewrow"> <setter property="cal:message.attach" value="[event mousedoubleclick] = [open()]"/> </style> </telerik:radgridview.rowstyle> <telerik:radgridview.columns> <telerik:gridviewdatacolumn header="section" datamemberbinding="{binding sectionnum}"/> <telerik:gridviewdatacolumn header="section info" datamemberbinding="{binding sectioninfo}"/> <telerik:gridviewdatacolumn header="result" datamemberbinding="{binding result}"/> </telerik:radgridview.columns> </telerik:radgridview >
this article seems have answer you.
it talks getting row index , setting color.
Comments
Post a Comment