I am trying to convert a gridview to a radgrid.
One issue I am having is to get certain rows to highlight with the color yellow when it matches the value of a specific column.
The grid view code works fine. The radgrid does not.
Radgrid is using a skin (web blue) so I am thinking that may be the issue.
Any help is appreciated.
protected void GridView_RowDataBound(object sender, GridViewRowEventArgs e)
{
if (e.Row.RowType == DataControlRowType.DataRow)
{
// determine the value of the ViewableByClient field
bool ViewableByClient =
Convert.ToBoolean(DataBinder.Eval(e.Row.DataItem,
"ViewableByClient"));
if (ViewableByClient)
// color the background of the row yellow
e.Row.BackColor = Color.Yellow;
}
}
protected void RadGrid3_RowDataBound(object sender, GridViewRowEventArgs e)
{
if (e.Row.RowType == DataControlRowType.DataRow)
{
// determine the value of the ViewableByClient field
bool ViewableByClient =
Convert.ToBoolean(DataBinder.Eval(e.Row.DataItem,
"ViewableByClient"));
if (ViewableByClient)
// color the background of the row yellow
e.Row.BackColor = Color.Yellow;
}
}
One issue I am having is to get certain rows to highlight with the color yellow when it matches the value of a specific column.
The grid view code works fine. The radgrid does not.
Radgrid is using a skin (web blue) so I am thinking that may be the issue.
Any help is appreciated.
protected void GridView_RowDataBound(object sender, GridViewRowEventArgs e)
{
if (e.Row.RowType == DataControlRowType.DataRow)
{
// determine the value of the ViewableByClient field
bool ViewableByClient =
Convert.ToBoolean(DataBinder.Eval(e.Row.DataItem,
"ViewableByClient"));
if (ViewableByClient)
// color the background of the row yellow
e.Row.BackColor = Color.Yellow;
}
}
protected void RadGrid3_RowDataBound(object sender, GridViewRowEventArgs e)
{
if (e.Row.RowType == DataControlRowType.DataRow)
{
// determine the value of the ViewableByClient field
bool ViewableByClient =
Convert.ToBoolean(DataBinder.Eval(e.Row.DataItem,
"ViewableByClient"));
if (ViewableByClient)
// color the background of the row yellow
e.Row.BackColor = Color.Yellow;
}
}