I have the following code in my project:
protected void radGrid1_OnItemDataBound(object sender, GridItemEventArgs e)
{
var rowIndex = -1;
if (e.Item is GridDataItem)
{
GridDataItem dataItem = e.Item as GridDataItem;
if ((dataItem[" "].Text == "<
b
>Total Capacity</
b
>") || (dataItem[" "].Text == "<
b
>Total Requested Capacity</
b
>")
|| (dataItem[" "].Text == "<
b
>Total Remaining Capacity</
b
>"))
{
rowIndex = dataItem.ItemIndex;
dataItem.BackColor = System.Drawing.ColorTranslator.FromHtml("#F7E69E");
}
}
}
I've attached a screen shot. If you look at the column headers the last one is "4/2016". However the data is just gone. That whole column is blank. The colored rows do not extent into that column. If i drag select the columns on the screen it's like that column does not even exist.
Any idea why a simple change such as this would cause an issue with the columns?