or
if (e.Item is GridDataItem) { StockPurchasingVehicle v = (StockPurchasingVehicle)e.Item.DataItem; GridDataItem item = (GridDataItem)e.Item; if (v.OffHireDate == DateTime.MinValue) { item.Cells[6].Text = ""; } }RadTab tab = new RadTab(); tabStripMain.Tabs.Add(tab); switch (myswitch) { case 1: tab.Text = node.SelectSingleNode("TAB_TITLE").ChildNodes[0].Value; tab.Font.Size = 12; tab.CssClass = "results_tab_off"; tab.SelectedCssClass = "results_tab_on"; tab.HoveredCssClass = "results_tab_on";break; default: tabStripMain.EnableEmbeddedSkins = true; tabStripMain.Skin = "Outlook"; break; }.results_tab_off{ background:white url(/images/medica/results_tab_off.png) no-repeat 0 100%; height: 40px; width: 211px; color: White; padding: 10px 0px 0px 0px !important; text-align: left !important; border-left: 1px solid white;}.results_tab_on{ background:white url(/images/medica/results_tab_on.png) no-repeat 0 100%; height: 40px; width: 211px; color: #999; padding: 10px 0px 0px 0px !important; text-align: left !important; border-left: 1px solid white;}.RadTabStrip .rtsTxt { padding-left: 5px !important; padding-top: 13px !important; } <div style="width: 550px;"> <div style="margin-top: 5px;"> <label for="cmbMake"> <span class="redtext">*</span> Vessel Make</label> <div class="info"> </div> <telerik:RadComboBox ID="cmbMake" Width="249px" runat="server" Filter="Contains" Skin="WebBlue" Font-Names="Arial" AutoPostBack="True"OnSelectedIndexChanged="cmbMake_SelectedIndexChanged" OnItemDataBound="cmbMake_ItemDataBound" OnItemsRequested="cmbMake_ItemsRequested"><CollapseAnimation Type="OutQuint" Duration="200"></CollapseAnimation></telerik:RadComboBox></div><div style="clear: both;"></div><div style="margin-top: 5px;"><label for="cmbModel"><span class="redtext">*</span> Vessel Model</label><div class="info"> </div><telerik:RadComboBox ID="cmbModel" Width="249px" AllowCustomText="true" runat="server" Filter="Contains" Font-Names="Arial" Skin="WebBlue" AutoPostBack="True" OnSelectedIndexChanged="cmbModel_SelectedIndexChanged" OnItemDataBound="cmbModel_ItemDataBound" OnItemsRequested="cmbModel_ItemsRequested"><CollapseAnimation Type="OutQuint" Duration="200"></CollapseAnimation></telerik:RadComboBox></div> </div>