Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / General / June 2007

Tip: Looking for answers? Try searching our database.

Adding a new row at the footer of a GridView

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
a.mustaq@gmail.com - 19 Jun 2007 10:47 GMT
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
Masudur - 19 Jun 2007 12:02 GMT
On Jun 19, 3:47 pm, "a.mus...@gmail.com" <a.mus...@gmail.com> wrote:
> Hi All,
>
[quoted text clipped - 3 lines]
> 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
Riki - 20 Jun 2007 08:32 GMT
> 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

Signature

Riki


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.