473,320 Members | 1,926 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

EditColumn

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?
Nov 18 '05 #1
1 1099
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
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 18 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Yasir Hussain | last post by:
Hope someone can shed some light on the follow issue. With regards to the excellent article by Dino Esposito on Nested DataGrids,...
1
by: Simon | last post by:
I have first column in datagrid with Product names. Then I have the second column in dataGrid : edit text. I don't wont to have this column. Is it possible to click on product name instead of...
3
by: .Net Newbie | last post by:
I'm new to .Net and need to create a generic (free) way to update lookup tables in SQL Server (using C#) in ASP.Net pages. I found an article at:...
3
by: John E. | last post by:
I have a datatable that I am binding to a C# ASP.NET 1.1 web page datagrid. I also want to put an "Edit" column on the datagrid. However, whenever I use the following code, it puts the Edit...
1
by: kuljitsingh | last post by:
Why e.Item.DataItem("datafield") does not works in EditCommand, CancelCommand, and UpdateCommand whereas e.Item.Cells(12).Text works? Is there a way to retreive datafields of a datagrid by their...
1
by: Jim Bayers | last post by:
I get this error: System.NullReferenceException: Object reference not set to an instance of an object. And this is the subroutine that throws it: Protected Sub DataUpdate(ByVal Sender As...
4
by: hazz | last post by:
I am having a very difficult time with what should be an easy task. I simply want to select these fields from the database table into the GridView control and have checkboxes appear for which the...
1
by: dasayu | last post by:
Hi, I have a custom object called gridWidget. I am consistantly getting an error in FireFox when I click on an href, which calls a function defined on the object. The generated link looks similar...
0
by: steve.kaye | last post by:
I'm writing a control which contains a collection of Column objects which needs to be written to InitializeComponent() by the designer. I've created a collection object (ColumnCollection) derived...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.