I am in the process of converting a asp:GridView control to AjaxDataControl:GridView...
My old grid has a 'hover' i.e when the mouse hovers on a row in the grid view the row is highlighted,and when the user clicks on the row the row is selected by settings its td back ground color to dark green..using the old grid view this was pretty simple , i just did ..
On GridView_OnRowDataBound(sender,GridViewRowEventArgs)
if(e.Row.RowType == DataControlRowType.DataRow)
{
...
e.Row.Attributes.Add("onmouseover","this.style.backgroundColor = "#F5F5F5")
e.Row.Attributes.Add("onmouseover","this.style.backgroundColor = "#FFFFFF")
}
Now i dont know what has to be done to make this work with gridview ajaxdata control since there is no way to add any custom javascript when the rowDataboundEvent fires
- function rowDataBound(sender, e)
- {
- if (e.get_row().get_isDataRowType())
{
//Thinking.....Thinking Thinking ....... Please help!!!
}