how to change the color of the row based the column value in the WebHierarchicalDataGrid
<ig:WebHierarchicalDataGrid runat="server" ID="wdgEmployees" AutoGenerateColumns="false" DataMember="DVParent1" DataSourceID="WebHierarchicalDataSource1" Width="100%" ondatabinding="wdgEmployees_DataBinding" oninit="wdgEmployees_Init" oninitializerow="wdgEmployees_InitializeRow" onrowislanddatabinding="wdgEmployees_RowIslandDataBinding" > <Columns> <ig:TemplateDataField Key="CSA_Serial Number"> <HeaderTemplate> Serial Number </HeaderTemplate> <ItemTemplate> <div> <%# DataBinder.Eval(((Infragistics.Web.UI.TemplateContainer)Container).DataItem, "EQUIPMENT.SERIALNUMBER")%> </div> </ItemTemplate> </ig:TemplateDataField> <ig:TemplateDataField Key="CSA_ENROLLNUM1"> <HeaderTemplate> Schduled At Hours </HeaderTemplate> <ItemTemplate> <div> <%# DataBinder.Eval(((Infragistics.Web.UI.TemplateContainer)Container).DataItem, "SchduledAtHours")%> </div> </ItemTemplate> </ig:TemplateDataField> <ig:TemplateDataField Key="CSA_ENROLLNUM3"> <HeaderTemplate> GPS </HeaderTemplate> <ItemTemplate> <div> ( <%# DataBinder.Eval(((Infragistics.Web.UI.TemplateContainer)Container).DataItem, "EQUIPMENT_DFFleetSummary_LAT")%>, <%# DataBinder.Eval(((Infragistics.Web.UI.TemplateContainer)Container).DataItem, "EQUIPMENT_DFFleetSummary_LON")%>) </div> </ItemTemplate> </ig:TemplateDataField> <ig:TemplateDataField Key="CSA_ENROLLNUM4"> <HeaderTemplate> EnrollNumber </HeaderTemplate> <ItemTemplate> <div> <%# DataBinder.Eval(((Infragistics.Web.UI.TemplateContainer)Container).DataItem, "CSA.ENROLLNUM")%> </div> </ItemTemplate> </ig:TemplateDataField> <ig:TemplateDataField Key="CSA_ENROLLNUM5"> <HeaderTemplate> Warranty PSP </HeaderTemplate> <ItemTemplate> <div> <%# DataBinder.Eval(((Infragistics.Web.UI.TemplateContainer)Container).DataItem, "PSP")%> </div> </ItemTemplate> </ig:TemplateDataField> <ig:TemplateDataField Key="CSA_ENROLLNUM6" Width="120"> <HeaderTemplate> Oil Level </HeaderTemplate> <ItemTemplate> <div> <%# DataBinder.Eval(((Infragistics.Web.UI.TemplateContainer)Container).DataItem, "EQUIPMENT_refOil")%> </div> </ItemTemplate> </ig:TemplateDataField> </Columns> <Behaviors> <ig:Selection RowSelectType="Single" CellClickAction="Row"> </ig:Selection> <ig:Sorting EnableCellMerging="false" SortingMode="Multi" /> </Behaviors> </ig:WebHierarchicalDataGrid> </Template> </ig:ContentTabItem> <ig:ContentTabItem runat="server" Text="In Progress"> <Template> <ig:WebHierarchicalDataGrid runat="server" ID="WebHierarchicalDataGrid1" AutoGenerateColumns="false" DataMember="DVParent2" DataSourceID="WebHierarchicalDataSource1" Width="100%"> <Columns> <ig:TemplateDataField Key="CSA_Serial Number"> <HeaderTemplate> Serial Number </HeaderTemplate> <ItemTemplate> <div> <%# DataBinder.Eval(((Infragistics.Web.UI.TemplateContainer)Container).DataItem, "EQUIPMENT.SERIALNUMBER")%> </div> </ItemTemplate> </ig:TemplateDataField> <ig:TemplateDataField Key="CSA_ENROLLNUM1"> <HeaderTemplate> Schduled At Hours </HeaderTemplate> <ItemTemplate> <div> <%# DataBinder.Eval(((Infragistics.Web.UI.TemplateContainer)Container).DataItem, "SchduledAtHours")%> </div> </ItemTemplate> </ig:TemplateDataField> <ig:TemplateDataField Key="CSA_ENROLLNUM3"> <HeaderTemplate> GPS </HeaderTemplate> <ItemTemplate> <div> ( <%# DataBinder.Eval(((Infragistics.Web.UI.TemplateContainer)Container).DataItem, "EQUIPMENT_DFFleetSummary_LAT")%>, <%# DataBinder.Eval(((Infragistics.Web.UI.TemplateContainer)Container).DataItem, "EQUIPMENT_DFFleetSummary_LON")%>) </div> </ItemTemplate> </ig:TemplateDataField> <ig:TemplateDataField Key="CSA_ENROLLNUM4"> <HeaderTemplate> EnrollNumber </HeaderTemplate> <ItemTemplate> <div> <%# DataBinder.Eval(((Infragistics.Web.UI.TemplateContainer)Container).DataItem, "CSA.ENROLLNUM")%> </div> </ItemTemplate> </ig:TemplateDataField> <ig:TemplateDataField Key="CSA_ENROLLNUM5"> <HeaderTemplate> Warranty PSP </HeaderTemplate> <ItemTemplate> <div> <%# DataBinder.Eval(((Infragistics.Web.UI.TemplateContainer)Container).DataItem, "PSP")%> </div> </ItemTemplate> </ig:TemplateDataField> <ig:TemplateDataField Key="CSA_ENROLLNUM6" Width="120"> <HeaderTemplate> Oil Level </HeaderTemplate> <ItemTemplate> <div> <%# DataBinder.Eval(((Infragistics.Web.UI.TemplateContainer)Container).DataItem, "EQUIPMENT_refOil")%> </div> </ItemTemplate> </ig:TemplateDataField> </Columns> <Behaviors> <ig:Selection RowSelectType="Single" CellClickAction="Row"> </ig:Selection> <ig:Sorting EnableCellMerging="false" SortingMode="Multi" /> </Behaviors> </ig:WebHierarchicalDataGrid>
C# code:
WebHierarchicalDataSource1.DataViews[0].DataSource = ThePMContractHeaderOpenListL;
i want to change the color to red based on the SchduledAtHours
plz help me
thanks,
venkatesh.
Hello ,
Thank u for ur help.
If I had any issuer I will come back to u.
thank u,
Venkatesh
Hello,
I'm just checking up to see if the suggested helped you. If you have any other questions regarding the issue if this thread, please let me know.
Hello Venkatesh,
I am glad this helped you.
Regarding the rowcommand event - please refer to the following forum thread where this is discussed - http://ko.infragistics.com/community/forums/t/47131.aspx
Please let me know if I may be of any further assistance regarding this matter.
P.S. Also I would like to let you know that Infragistics' policy is to handle a different thread/case for every different issue our customers face. This helps tracking and searching and enable us to provide better support. Please keep this in mind regarding your next demands.
thank u, for ur respone
now i am able to change the color of the row.
we had rowcommand event the asp grid is there any similar type of event in this grid
i had a button in the grid, on button click i need to perform some task how can i?
please help me
venkatesh
I'm just following up to see if you need any further assistance with this issue. If so please let me know.