C# Tutorials and offshore development in India
    Tutorials   Resources   Forum   Reviews   Communities   Interview   Jobs   Projects   Training   Your Ad Here    
Silverlight Games | Mentor | Code Converter | Articles | Code Factory | Computer Jokes | Members | Peer Appraisal | IT Companies | Bookmarks | Polls | Revenue Sharing | Lobby | Gift Shop |


Prizes & Awards
My Profile



Active Members
TodayLast 7 Days more...






Forums » .NET » .NET »

Clearing the datagrid....


Posted Date: 26 Jun 2007      Posted By: inbaraj      Member Level: Silver     Points: 2   Responses: 2



Hi...

I want to clear the datagrid value when ever i click the button....

Can any one help me with sample code...

with reg
inbaraj......





Responses

Author: Shivshanker Cheral    26 Jun 2007Member Level: DiamondRating: 2 out of 52 out of 5     Points: 2

just rebind the datagrid without any rows


Author: Padma    26 Jun 2007Member Level: DiamondRating: 2 out of 52 out of 5     Points: 2

try this
dgd.datasource=nothing
dgd.databind()
orelse
dgd.items.clear()



Post Reply

 This thread is locked for new responses. Please post your comments and questions as a separate thread.
If required, refer to the URL of this page in your new post.


Next : DiffGram
Previous : how to ignore backslash charecter in textbox in windows application
Return to Discussion Forum
Post New Message
Category: .NET

Related Messages



dotNet Slackers

About Us    Contact Us    Privacy Policy    Terms Of Use