We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
I wired up the ItemDataBound event to Grid. But it is not even firing the ItemDataBound event.And Link button click doesn't firing the Grid_RowCommand.
<asp:GridView ID="grd1" runat="server" SkinID="GridView10RowsSortAndPage" OnRowCommand="Grid_RowCommand"
OnRowDataBound="Grid_RowDataBound" onItemDataBound="Grid_ItemDataBound">
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
Experts Exchange has (a) saved my job multiple times, (b) saved me hours, days, and even weeks of work, and often (c) makes me look like a superhero! This place is MAGIC!
<asp:GridView ID="grd1" runat="server" SkinID="GridView10RowsSort
OnRowDataBound="Grid_RowDa
protected void Grid_ItemDataBound(object sender, System.Web.UI.WebControls.
{
GridView grd = (GridView)sender;
try
{
switch (grd.ID.ToString())
{
case "grd1":
{
if (e.Item.ItemType == ListItemType.Item || e.Item.ItemType == ListItemType.AlternatingIt
{
LinkButton lnkAmt= e.Item.FindControl("btnAmt
lnkAmt.Attributes.Add("onc
}
break;
}
}
}
catch (Exception ex)
{
string s = ex.Message;
}
finally
{
}
}
Any suggestions please.
Thanks.