Advertisement

05.20.2008 at 10:15AM PDT, ID: 23418040
[x]
Attachment Details

C# / VS2008  Button Event and DataGrid/DataRow

Asked by jamesdean666 in Microsoft Visual C#.Net, C# Programming Language

Tags: Microsoft, Visual Studio 2008, 2008, C# / VS2008  Button Event and DataGrid/DataRow

I have returned a number of rows into a DataGrid on a form_load event.

I am using the following two controls:

DataGrid - dgProducts
Button - btnEditProducts

I would like to be able to click on btnEditProducts and take a selected row in the Datagrid to a new Edit Products form.  How would I write the code to select the row, and then bind it to the controls on the Edit Products form?  

Thanks,

JD
Start Free Trial
[+][-]05.20.2008 at 10:44AM PDT, ID: 21608451

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]05.20.2008 at 11:39AM PDT, ID: 21608935

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]05.20.2008 at 11:41AM PDT, ID: 21608960

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]05.20.2008 at 01:17PM PDT, ID: 21609957

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: Microsoft Visual C#.Net, C# Programming Language
Tags: Microsoft, Visual Studio 2008, 2008, C# / VS2008  Button Event and DataGrid/DataRow
Sign Up Now!
Solution Provided By: dweppenaar
Participating Experts: 1
Solution Grade: A
 
 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628