protected void grdContratos_RowDataBound(object sender, GridViewRowEventArgs
e)
{
if (e.Row.RowType == DataControlRowType.DataRow)
{
if (e.Row.Cells[0].Controls != null)
{
RadioButtonList radioSimNao =
(RadioButtonList)e.Row.Cells[0].Controls[0].FindControl("radioSimNao");
radioSimNao.ToolTip = radioSimNao.ClientID;
radioSimNao.Attributes.Add("onchange", "javascript
:alert('teste')");
}
}
}
What is the diference between RowCreated and RowDataBound ?
"Mark Rae [MVP]" <ma**@markNOSPAMrae.netescreveu na mensagem
news:%2****************@TK2MSFTNGP03.phx.gbl...
"Paulo" <pr*****@uol.com.brwrote in message
news:eb**************@TK2MSFTNGP04.phx.gbl...
>Mark, the <tablebelow is generated automatically by .net, the radios
inputs are inside the <td>, as you can see the .net added _1, _2, _3 for
each id input, but the name is the same...
Please show the .NET code...
--
Mark Rae
ASP.NET MVP
http://www.markrae.net