.net: How do you feed a winform after clicking on a row of a datagridview of search form?
Posted
by
odiseh
on Stack Overflow
See other posts from Stack Overflow
or by odiseh
Published on 2011-01-12T10:46:17Z
Indexed on
2011/01/12
10:53 UTC
Read the original article
Hit count: 133
I have a winform which is responsible for doing a search by some conditions that users enters and then selects the records from a Database. The search form has a data grid view which shows the result. After searching, user clikcs on a row of the datagridview and then another form (for example frmShowDetails) will be displayed.
My question is when displaying frmShowDetails, what are your suggestions to send the id of selected row to frmShowDetails in order to feed it to show data in .net? Do you use form property or a private mariable which sets by only form constructor?
Thank you
© Stack Overflow or respective owner