It is changing the color of the text.
I want something like, highlighting the text and not the entire cell.
<td colspan='3'><font face='Verdana' size='1'><B><span
style='background-color: #FFFF00'>My text</span></font></B></td>
Thanks,
smith
"Elton W" <El****@discussions.microsoft.com> wrote in message
news:B8**********************************@microsof t.com...
Try
item.Cells[col_index].ForeColor = Color.Blue
HTH
Elton
"JohnSmith90" wrote:
Thanks for the reply.
The suggested method highlights the entire cell area. I want to
highlight the text only.
Thanks,
Smith
"Elton W" <El****@discussions.microsoft.com> wrote in message
news:E8**********************************@microsof t.com... You can try code as follows:
foreach (DataGridItem item in DataGrid.Items)
{
item.Cells[col_index].BackColor = Color.Blue;
}
HTH
Elton Wang
el********@hotmail.com
"JohnSmith90" wrote:
> I want to highlight the entire cell data for all rows of a
particular column > in a data grid.
>
> I do not want to fill the back ground color of the cell. How to do
that in a > data grid?
>
>
>
> <span style='background-color: #FFFF04'>highlighted Text</span>
>
> I am using .Net Frame work 1.1 and IE5.+.
>
> Thank you very much for the reply.
>
> Smith
>
>
>
>
>
>
>