Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How can i detect DataGridView.SelectedRows pass in 2 for
Message
De
26/08/2011 03:15:58
 
 
À
25/08/2011 16:03:39
Information générale
Forum:
ASP.NET
Catégorie:
Code, syntaxe and commandes
Versions des environnements
Environment:
VB 9.0
Divers
Thread ID:
01521317
Message ID:
01521850
Vues:
17
ok, thank you for reply me. This problem i already seen you blog and sovled it.
But i also find a speical problem. I don't know , i can't pass the sample cotrol text. I want to pass the text form MainForm to OptionForm.
And then i think this problem , it lead why i can't to use DataGridView.SelectedRows method to detect and get the selected rows.
Have you this experience? (i use vb.net mdi form, datagirdview , databinding)

'MainForm Button event is no problem, variable a store "1"
Private Sub BtnBatch_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles BtnBatch.Click

Dim a as string =""
a = ComboBoxUsername.text
OptionForm.Show()


End Sub

-----------------------------------------------------------------------------------------------------------------------------------------------
Private Sub OptionForm_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load

Dim b As String = ""
b = MainForm.ComboBoxUsername.Text 'My problem in this , b store " " ,no data

end sub
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform