.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
Gaurav Pal

Home >> Forum >> Windows Application >> Post New QuestionBookmark and Share Subscribe to Forum

Button control into DataGridView in C#.NET Windows App

Posted By: Sunil     Posted Date: September 27, 2008    Points:2   Category :Windows Application

i want to Add Button control into DataGridView for the Edit, Insert,Delete. How we Do This.

these Button will appear insid each Rows of DataGridView.

as we seen in Asp.net there has it option. but i want to that facility into windows application. please help

Author: Faizal             
Posted Date: September 27, 2008     Points: 5   

DataDridView has the capability to edit data in the cell itself

Set DataGridView are set to true:

dataGridView.AllowUserToAddRows = true;
dataGridView.AllowUserToDeleteRows = true;

This will let you press the delete key to delete a row and will place a footer row for insertions. Editing data is enabled by default. If you now what to push these changes to the DB, you will have to setup properties of your DataSource. Or manually do changes based on DataSet.HasChanges.

Author: Santosh             
Posted Date: October 08, 2009     Points: 5   

hi sunil
u just right click on DataDridView,Click on Edit columns
and in Add column section you need to choose the type of the column(LIke Textbox,Button,CheckBox etx).

Try With

Post Reply

You must Sign In To post reply
Find more Forum Questions on C#, ASP.Net, Vb.Net, SQL Server and more Here
Quick Links For Forum Categories:
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  OOPs  SilverlightIISJQuery

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend