This question is locked. New answers and comments are not allowed.
Hi,
I have a problem when I'm trying to change the background of a cell.
I'm using the following statement:
But when I have more columns than the showed in the grid and I want to see them by moving the scroll bar the color suddenly disappear.
I notice that the number of RadGridView's cells is less than the real number when I have more columns than the showed in the page.
I want to know if I'm doing the right way and How is the best way to achieve this??
Regards,
José
I have a problem when I'm trying to change the background of a cell.
I'm using the following statement:
GridViewItemContainerGenerator container = grid.ItemContainerGenerator;
GridViewRow actualRow = null;
for (int i = row; i <= rowSel; i++)
actualRow = container.ContainerFromIndex(i) as GridViewRow;
for (int j = col; j <= colSel; j++)
{
actualRow.Cells[j].Background = new System.Windows.Media.SolidColorBrush((Color)value);
}
}I notice that the number of RadGridView's cells is less than the real number when I have more columns than the showed in the page.
I want to know if I'm doing the right way and How is the best way to achieve this??
Regards,
José