G
Guest
I'm trying to make the jump from VB to C#. Aside from the syntax issues i'm
running into some execution differences i think
1. I created a C# page in an existing VB.net website
2. I added a gridview with a footer row
3. i attempted to change the value of a label in the footer row on row
databound using:
protected void gv_catalog_RowDataBound(object sender,
System.Web.UI.WebControls.GridViewRowEventArgs e)
{
if ((e.Row.RowType == DataControlRowType.Footer))
{
Label lbl =
(Label)this.gv_catalog.FooterRow.FindControl("lbl_OrderTotal");
lbl.Text = "total go here";
lbl.Font.Bold = true;
}
}
Note: I can get it to change in the page_load, but my point is it does not
appear that the gv_catalog_RowDataBound event is firing.
Questions:
1. Is there something else i need to do to get this even to fire?
2. I noticed that Intelesense does not work, i see items grayed out, but not
selectable.
running into some execution differences i think
1. I created a C# page in an existing VB.net website
2. I added a gridview with a footer row
3. i attempted to change the value of a label in the footer row on row
databound using:
protected void gv_catalog_RowDataBound(object sender,
System.Web.UI.WebControls.GridViewRowEventArgs e)
{
if ((e.Row.RowType == DataControlRowType.Footer))
{
Label lbl =
(Label)this.gv_catalog.FooterRow.FindControl("lbl_OrderTotal");
lbl.Text = "total go here";
lbl.Font.Bold = true;
}
}
Note: I can get it to change in the page_load, but my point is it does not
appear that the gv_catalog_RowDataBound event is firing.
Questions:
1. Is there something else i need to do to get this even to fire?
2. I noticed that Intelesense does not work, i see items grayed out, but not
selectable.