J
jhcorey
I mentioned this recently in another post.
Let's say I want to use the ItemDataBound event for a datagrid.
I assume that I need:
this.DataGrid1.ItemDataBound += new
System.Web.UI.WebControls.DataGridItemEventHandler(this.DataGrid1_ItemDataBound);
in the InitializeComponent function. Is this correct, or is there
another way
to do this?
Because (1) the comments say not to touch this; and (2) this function
keeps getting cleared out, which I've noticed is a known problem.
I'm evidently carrying some habits over from vb.net that keep messing
me up.
TIA,
Jim
Let's say I want to use the ItemDataBound event for a datagrid.
I assume that I need:
this.DataGrid1.ItemDataBound += new
System.Web.UI.WebControls.DataGridItemEventHandler(this.DataGrid1_ItemDataBound);
in the InitializeComponent function. Is this correct, or is there
another way
to do this?
Because (1) the comments say not to touch this; and (2) this function
keeps getting cleared out, which I've noticed is a known problem.
I'm evidently carrying some habits over from vb.net that keep messing
me up.
TIA,
Jim