IT Community - Software Programming, Web Development and Technical Support

GridView.DataBind not working

This is a discussion on GridView.DataBind not working within the ASP and ASP.NET Programming forums, part of the Web Development category; Hi, all I create a Dynamic Repeater in the DataBound Event of the nested repeater(Repeater inside the Repeater). Here ...


Go Back   IT Community - Software Programming, Web Development and Technical Support > Web Development > ASP and ASP.NET Programming

Register FAQ Members List Calendar Mark Forums Read
  #1 (permalink)  
Old 12-20-2007, 03:05 AM
rrrajesh84in rrrajesh84in is offline
D-Web Master
 
Join Date: Mar 2007
Posts: 399
rrrajesh84in is on a distinguished road
Default GridView.DataBind not working

Hi, all


I create a Dynamic Repeater in the DataBound Event of the nested repeater(Repeater inside the Repeater). Here the Repeater which i generated is in the third level of nested Repeater

the third Repeater name is cascadingSubCategoryRepeater.

i have assign the ItemDataBound event as shown bellow

and i bind the cascadingSubCategoryRepeater repeater, It works fine and the
Databound event was called perfectly.

"cascadingSubCategoryRepeater.ItemDataBound += new System.Web.UI.WebControls.RepeaterItemEventHandler (this.cascadingSubCategoryRepeaterDup_DataBound);
cascadingSubCategoryRepeater.DataBind();"


Actually my problem starts here. when i replace my Nested Repeater to Nested GridView and when i create a Third GridView Dynamically and assign a Event as show bellow the dataBind event was not firing i checked it by debuging the "cascadingSubCategoryGridView_DataBound" was not fired


"cascadingSubCategoryGridView.RowDataBound += new System.Web.UI.WebControls.GridViewRowEventHandler( this.cascadingSubCategoryGridView_DataBound);
cascadingSubCategoryGridView.DataBind();"



Any ideas, would be greatly appreciated!
Thanks,
Rajesh.R
__________________
.....................................
''''''
Rajesh''''''
Ants. . . . . . Like me
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 03-21-2008, 10:01 PM
poornima poornima is offline
D-Web Sr.Programmer
 
Join Date: Dec 2007
Posts: 189
poornima is on a distinguished road
Smile Re: GridView.DataBind not working

Hi,
If u generating the third GridView dynamically,Usiing 'foreach' statement find the presence of dynamically created gridview.Then using that GridView add RowDataBound event..Then it will work i think so...
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Exporting GridView to Excel shaalini ASP and ASP.NET Programming 4 03-26-2008 02:23 AM
Which is the best among DataList,Repeater and GridView and Why? poornima ASP and ASP.NET Programming 2 03-14-2008 08:44 PM
GridView Item Tempalte Problem shaalini C# Programming 0 01-29-2008 09:11 PM
problem when I use this.DataBind() in content page..? Archer C# Programming 1 07-22-2007 11:30 PM
How to add mouseover function to Gridview..? kingmaker C# Programming 1 07-20-2007 12:40 AM


All times are GMT -7. The time now is 09:12 AM.


Copyright ©2004 - 2007, DiscussWeb. All Rights Reserved.

SEO by vBSEO 3.0.0