Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
20
converting ultragridcell to a Table cell
posted

want to implement the same functionality for ultragrid row created .. 

 

  protected void OnRowCreated(object sender, GridViewRowEventArgs e)
    {

        if (e.Row.RowType == DataControlRowType.DataRow)
        {
            DataRowView drv = e.Row.DataItem as DataRowView;
            if (null != drv)
            {
                Object ob = drv["ProductID"];
                e.Row.Cells[1].Attributes.Add("onmouseover", "onMouseOnRow('" + ob.ToString() + "');");
                e.Row.Cells[1].Attributes.Add("onmouseout", "onMouseOutOfRow();");
                e.Row.Attributes.Add("onmouseover", "this.className='hightlighrow';");
                e.Row.Attributes.Add("onmouseout", "this.className='normalrow'");
            }
        }
           }