EditColumn

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?
 
N

Natty Gur

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
 

Ask a Question

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.

Ask a Question

Top