EditColumn

  • Thread starter Thread starter Jim Heavey
  • Start date Start date
J

Jim Heavey

Hello
How can I alter the footer of the <asp:editCommandColumn?
For all of the other columns I am using the
<FooterTemplate, but that does not seem to be available
to me for the EditCommandColumn.

Do I have to use the ItemCreate Event?
 
Hi,

Yes :
private void DataGrid1_ItemCreated(object sender,
System.Web.UI.WebControls.DataGridItemEventArgs e)
{

//e.CheckedChanged
if ( e.Item.ItemType == ListItemType.Footer )
{
e.Item.Cells[4].Text = "MyFotter";
}
}

Natty Gur[MVP]

blog : http://weblogs.asp.net/ngur
Mobile: +972-(0)58-888377
 
Back
Top