D
dh
I can Highlight A column if I Hardcode the specific cell position
mumber, like below.
private void MyDataGrid_ItemDataBound(object sender,
DataGridItemEventArgs e)
{
if(e.Item.ItemType == ListItemType.Item)
{
e.Item.Cells[3].BackColor = Color.Red;
}
}
My problem is, instead of specifying a cell position of [3], how can I
insert the cell position number of the column that has been sorted?
For example:
e.Item.Cells[SortExpression].BackColor = Color.Red;
Any help is appreciated.
mumber, like below.
private void MyDataGrid_ItemDataBound(object sender,
DataGridItemEventArgs e)
{
if(e.Item.ItemType == ListItemType.Item)
{
e.Item.Cells[3].BackColor = Color.Red;
}
}
My problem is, instead of specifying a cell position of [3], how can I
insert the cell position number of the column that has been sorted?
For example:
e.Item.Cells[SortExpression].BackColor = Color.Red;
Any help is appreciated.