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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top