highlight row??

  • Thread starter Thread starter perspolis
  • Start date Start date
perspolis said:
how can i highlight a row in the datagrid??

To Highlight rows during mouseover:
// add this to .net code after you bind the grid
foreach (DataGridItem dgi in myDataGrid.Items)
{
dgi.Attributes.Add("onmouseover", "this.style.backgroundColor='#0000ff'");
dgi.Attributes.Add("onmouseout", "this.style.backgroundColor='#ffffff'");
}

-jerry
 
Back
Top