B
bg
is there anyone help me,
i want to add rowclick javascrip function on asp.net datagrid
what can i do this.
bgun
i want to add rowclick javascrip function on asp.net datagrid
what can i do this.
bgun
Eliyahu Goldin said:private void dgSelection_ItemDataBound(object sender,
System.Web.UI.WebControls.DataGridItemEventArgs e)
{
// provide client-side selection a datagrid row upon clicking any place on
the row.
ListItemType itemType = e.Item.ItemType;
if ((itemType == ListItemType.Pager) ||
(itemType == ListItemType.Header) ||
(itemType == ListItemType.Footer))
{
return;
}
e.Item.Attributes["onclick"] = "onAlertsRowClick(this)";
}
Eliyahu
bg said:Can you give me code snippet with doing by ItemDataBound
Thanks
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.