|
-
Jul 30th, 2010, 04:01 PM
#3
Fanatic Member
Re: Passing current record
write a Public Sub New(ByRef dgvi As DataGridViewItem) on your second form with a DataGridViewItem(?) object to pass.
Then, just pass the selected datagridviewitem from the datagridview, and then extract the appropriate information from the appropriate columns/field/index.
Then when you want to launch the form, do:
Dim frm as New Form(DataGridView.SelectedItems(0))
I may be totally wrong, but I think if you pass it byref it will update the datagridview as well.
I may be wrong on that tho.
Last edited by Seraph; Jul 30th, 2010 at 04:06 PM.
Visual Studio 2010 Professional | .NET Framework 4.0 | Windows 7
SERYSOFT.COM :: SysPad - Folder Management Program - Please comment HERE if you find this program useful, have ideas, or know of any bugs.
[Very useful for IT/DP departments where many folders are consistently accessed. Also contains a scratchpad window for quick access to notes.]
[.NET and MySQL Quick Guide]
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|