8
Answers

color change one word in gridview

example  i have gridview  row  = certain text  color change in gridview in  a row.  color word only change color  
Answers (8)
0
nethaji jayavelu

nethaji jayavelu

NA 17 295 9y
what is my obj
0
nethaji jayavelu

nethaji jayavelu

NA 17 295 9y
i want change one word only in a row
0
nethaji jayavelu

nethaji jayavelu

NA 17 295 9y
can you explain briefly
0
Amit Singh

Amit Singh

NA 3.7k 46.6k 9y
Yes....It's possible
0
nethaji jayavelu

nethaji jayavelu

NA 17 295 9y
thank you for reply
0
nethaji jayavelu

nethaji jayavelu

NA 17 295 9y
no iam not asking this. i am software developer. software word change in another color
0
Amit Singh

Amit Singh

NA 3.7k 46.6k 9y
<AlternatingRowStyle BackColor="#808080" />
<AlternatingRowStyle ForeColor="#808080" />

 

-1
Amit Singh

Amit Singh

NA 3.7k 46.6k 9y
// In template column, 
if (e.Row.RowType == DataControlRowType.DataRow)
{
var obj = (MyObject)e.Row.DataItem;
if (obj.Status == 1)
{
e
.Row.Cells[2].Text = "IN";
e
.Row.Cells[2].BackColor = Color.Blue;
e
.Row.Cells[2].ForeColor = Color.White;
}
}
Next Recommended Forum