Load Form Filtered

B

BD

I have a form that shows a datagrid view listing of workorders linked
to customers by ID number. I want to Double-Click a row in this
datagrid view to open form "Work Order" to a specific record related by
'workorderID'. I know how to do it, but I don't know how to code it
for C#. Any help is greatly appreciated.

BD
 
N

Nicholas Paldino [.NET/C# MVP]

BD,

On the double click event handler, all you have to do is create a new
instance of the form with the details and then pass the row to that form
somehow once you show it. You can do this by passing the row through the
constructor to the new form, a property, or a method.

Hope this helps.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Top