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 »

DataGrid


Posted Date: 03 Nov 2009      Posted By: Naresh      Member Level: Silver     Points: 1   Responses: 3



Hi ALL

c# windows
how to add edit and delete button in every row datagrid .if possible send me the code

Thanks





Responses

Author: Anuraj    03 Nov 2009Member Level: DiamondRating: 2 out of 52 out of 5     Points: 2

You can add Edit and Delete buttons. Or you can use Template column to do this.

Thanks
Anuraj
THIS POSTING IS PROVIDED "AS IS" WITH NO WARRANTIES, AND CONFERS NO RIGHTS.
BEWARE OF BUGS IN THE ABOVE CODE; I HAVE ONLY PROVED IT CORRECT, NOT TRIED IT.
dotnetthoghts



Author: ujual    03 Nov 2009Member Level: SilverRating: 2 out of 52 out of 5     Points: 2

In your design page select your datagrid view.
At the top you can see a '>' symbol which will help you add datagridview tasks Click there.
Select Edit Columns-> Click commad field->Select its first row 'Edit,Update,cancel' ->Add it-> In Property side change the button type as 'Button' and remove the properties like update text delete text etc. You have to keep only Edit Text.

Click ok.



Author: azmath    04 Nov 2009Member Level: BronzeRating: 2 out of 52 out of 5     Points: 2

u can go with the template column.... try it...


Post Reply
You must Sign In to post a response.
Next : DataGrid
Previous : TextBox Quantity and HiddenField values are not passed on?
Return to Discussion Forum
Post New Message
Category: .NET

Related Messages



dotNet Slackers

About Us    Contact Us    Privacy Policy    Terms Of Use