Click here to Skip to main content
15,921,793 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hi friends
I have a form with a grid view and insert,update and delete buttons called . And that project also consists of 3 more forms with names frmInsertData,frmUpdateData, frmDeleteData consists of a save button and text boxes which are same as columns of a table of the database(Sql Server).
now I displayed the table in the datagridview of show frmShowdata.
when ever I click on insert button frmInsert window will get pop up.
(update,delete also like that)
now my requirement is - when ever I select one row of table in the grid view and I click on update or delete button,frmUpdate or frmDelete should be populated respectively with the data of the row.
(the application is in 3tire and it is windows)
Posted
Updated 16-Jul-12 0:51am
v2

1 solution

Hi,

If above is the case then you can achieve it as shown in the example in the bellow link:

http://weblogs.asp.net/gurusarkar/archive/2010/04/28/binding-list-of-custom-class-to-gridview-or-listview-control.aspx[^]

As you are already using 3 tire You need to pass the object of selected row in datagridview in the form and rest can be handled in the respective forms.

Regards,
Darshan.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900