protected
override
void
Render(HtmlTextWriter writer)
{
foreach (GridViewRow Row in GridView1.Rows)
{
if (Row.RowType == DataControlRowType.DataRow)
{
Row.Attributes[ " ondblclick " ] = ClientScript.GetPostBackEventReference(GridView1, " Select$ " + Row.RowIndex.ToString(), true );
Row.Attributes[ " style " ] = " cursor:pointer " ;
Row.Attributes[ " title " ] = " 双击选择行 " ;
}
}
base .Render(writer);
}
{
foreach (GridViewRow Row in GridView1.Rows)
{
if (Row.RowType == DataControlRowType.DataRow)
{
Row.Attributes[ " ondblclick " ] = ClientScript.GetPostBackEventReference(GridView1, " Select$ " + Row.RowIndex.ToString(), true );
Row.Attributes[ " style " ] = " cursor:pointer " ;
Row.Attributes[ " title " ] = " 双击选择行 " ;
}
}
base .Render(writer);
}