C# Tutorials and offshore development in India
    Tutorials   Resources   Forum   Interview   Jobs   Projects   Offshore Development    
Mentor | Code Converter | Articles | Code Factory | Computer Jokes | Members | Peer Appraisal | IT Companies | Bookmarks | Revenue Sharing | Talk to Us |



My Profile

Gifts

Active Members
TodayLast 7 Days more...







How to Refresh data grid after updating a row


Posted Date: 17 May 2008      Total Responses: 1

Posted By: Manikandan       Member Level: Silver     Points: 1


Hello all,

Iam am developing a window application in C#. In this iam using a table control in that there are five pages.Which all contains one grid each.Each grid is loading from Access DB using the built in mechanisam. My boss need to put out side button to Add Edit Delete the data. So after Editing or delete how can I reflect the Changes in the grid after the Submit button. Please provide me With Supporting Code........

Mani




Responses

Author: Nitish Kumar Singh    18 May 2008Member Level: GoldRating:     Points: 2
Hello, use this code.

first you clear the dataset like this,

dataset.clear();

and afetr that again fill the dataset like this,

sqldataadapter.fill(dataset);
datagir.datasource=dataset.tables[0];

The grid will get refresh.

Thanks,
Nitish.


Post Reply
You must Sign In to post a response.
Next : what is diffgram? why we use? where is it use?
Previous : Sealed class
Return to Discussion Forum
Post New Message
Category: .NET

Related Messages



dotNet Slackers   BizTalk Adaptors    Web Design

silicone halloween mask

Contact Us    Privacy Policy    Terms Of Use