What you want to see on DotNetFunda.com ?
DotNetFunda.Com Logo
Twitter TwitterLinkedIn
YouTubeGoogle
 Online : 13017 |  Welcome, Guest!   Register  Login
 Home > Forums > ASP.NET > Data binding to server control ...
Bhupentiwari

Data binding to server control

Replies: 1 | Posted by: Bhupentiwari on 6/26/2012 | Category: ASP.NET Forums | Views: 265 | Status: [Member] | Points: 10  


when we bind array to listitem no need to write .databind but in case of grid we have write databind why so ???

Thanks n Regards
Bhupendra Tiwari


Reply | Reply with attachment | Alert Moderator

 Responses below this adGet hundreds of .NET Tips and Tricks videos

 Replies

Premalatha
Premalatha  
Posted on: 6/28/2012 10:40:36 AM
Level: Starter | Status: [Member] | Points: 25

A common question reads something like this: "When I click the Edit link in one of my Datagrid rows, the page posts back and now contains no data. What went wrong?" The problem is that the data is only bound to the grid the first time the page is called. In each of the Datagrid's events (Edit, Update, Cancel, Page, Sort), make sure that you set the Datagrid's Datasource property (unless it is already set declaratively in the <asp:Datagrid> declaration), and call the DataBind() method on the Datagrid.


Go for This Like;

http://msdn.microsoft.com/en-us/library/aa478966.aspx

Premalatha
Software Engineer

Bhupentiwari, if this helps please login to Mark As Answer. | Reply | Alert Moderator 

Reply - Please login to reply


Click here to login & reply

About Us | Contact Us | The Team | Advertise | Software Development | Write for us | Testimonials | Privacy Policy | Terms of Use | Link Exchange | Members | Go Top
General Notice: If you find plagiarised (copied) contents on this page, please let us know the original source along with your correct email id (to communicate) for further action.
Copyright © DotNetFunda.Com. All Rights Reserved. Copying or mimicking the site design and layout is prohibited. Logos, company names used here if any are only for reference purposes and they may be respective owner's right or trademarks. | 5/22/2013 6:02:51 AM