473,473 Members | 1,793 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Adding a new row at the footer of a GridView

Hi All,

I want to add a new row in the footer of a grdview,
which can accept input.Please help in acheiving this.

Regards
Mustaq Ahmed.A

Jun 19 '07 #1
2 18782
On Jun 19, 3:47 pm, "a.mus...@gmail.com" <a.mus...@gmail.comwrote:
Hi All,

I want to add a new row in the footer of a grdview,
which can accept input.Please help in acheiving this.

Regards
Mustaq Ahmed.A
hi...

i have subscribed the rowcreated event of gridview

protected void GridView1_RowCreated(object sender,
GridViewRowEventArgs e)
{
if (e.Row.RowType == DataControlRowType.Footer)
{
TableRow tr = new TableRow();

TableCell cell1 = new TableCell();
cell1.Text = "Just a button";

TableCell cell2 = new TableCell();
Button btn = new Button();
btn.ID = "baba";
btn.Text = "Yahoo ! i mm in footer";
btn.Click += new EventHandler(btn_Click);
cell2.Controls.Add(btn);

e.Row.Cells.Clear();
e.Row.Cells.Add(cell1);
e.Row.Cells.Add(cell2);

}

}
void btn_Click(object sender, EventArgs e)
{
string s = e.ToString();
}
and the customized the footer...

you can clear the row and add a single cell and then populate the cell
with one table with multiple row....

Thanks
Masudur
www.kaz.com.bd
http://munnacs.110mb.com

Jun 19 '07 #2
<a.******@gmail.comwrote in message
news:11*********************@g4g2000hsf.googlegrou ps.com...
Hi All,

I want to add a new row in the footer of a grdview,
which can accept input.Please help in acheiving this.

See:
http://www.codeproject.com/aspnet/PSGridView.asp
http://fredrik.nsquared2.com/viewpost.aspx?PostID=155

--
Riki
Jun 20 '07 #3

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

Similar topics

0
by: tfsmag | last post by:
I know how to do summary footers in a gridview... but when i try it in a paged gridview it puts a footer on every page of just the items on that page. Any suggestions on how to get it to work so...
1
by: Stu Lock | last post by:
Hi, I've spent the last hour trawling google for this - but all I find are people asking the same question! I have a gridview which is being databound to an empty datasource. I can display...
0
by: =?Utf-8?B?Vmlua2k=?= | last post by:
Hello Everyone, I have to display total time in the footer of my gridview so I have a columnn a. I followed micrososft example to create the footer and display the total time and it is not...
1
by: Andrew Robinson | last post by:
I am using the following code to preload a few controls in the FooterRow within a GridView control: protected void Page_Load(object sender, EventArgs e) {...
0
by: gnewsgroup | last post by:
Well, I am trying to use the footer row of a GridView for insertion purpose. There are some articles about this, for example, the gridviewguy.com has an example, which always displays the footer...
1
by: bJames | last post by:
Hi I've been all around looking for an answer to this question, but can't find it. I've got a gridview with a single unbound column. It's got a textbox and button in the footer row. I"m trying to...
1
by: Michael | last post by:
I reviewed a couple of tutorials that show how to display totals in the footer of a gridview. My footer shows up blank. Can someone help me. The code is as follows: <%@ Page Language="VB" %>...
0
by: Mel | last post by:
How do I set the footer text for a GridView that has AllowPaging set to True? I can only get the footer to appear on the first page but I really want the same text to appear in the footer of all...
0
by: Bogdan | last post by:
Hi, I need to modify gridview footer so it consists only of a single column that spans all data columns in a gridview. I first tried DataBound() event (as per suggestion found on the Net) but...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.