Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to Refresh Form?
Message
De
06/09/2005 10:14:09
 
 
À
Tous
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Titre:
How to Refresh Form?
Versions des environnements
Environment:
VB.NET 1.1
OS:
Windows XP SP2
Network:
Windows XP
Database:
Visual FoxPro
Divers
Thread ID:
01046996
Message ID:
01046996
Vues:
43
Hi,
Easy question.. but...
I have a form with DATAGRID and TEXTBOX.
I'd like to skip DATAGRID records and refresh textbox.
DataGrid has not events like AfterRowColChange... then
I try to use CurrencyManager to insert CurrencyManager.Refresh.. but PositionChanged and CurrentChanged events not fire when I changing records in DataGrid... textbox still has value of first record..
Which event fires when I change row in DataGrid? and how to update other controls on form


Some code :
        pmks_dataset = New DataSet
        Me.OleDbDataAdapter1.Fill(pmks_dataset, "vbestbuy")
        Me.OleDbDataAdapter1.SelectCommand.Connection.Close()
        pmks_manager = CType(Me.BindingContext(pmks_dataset.Tables("vbestbuy")), CurrencyManager)
        Me.DataGrid1.DataSource = pmks_dataset
        Me.DataGrid1.DataMember = "vbestbuy"
        Me.txtDecrypt.DataBindings.Add(New Binding("text", pmks_dataset.Tables("vbestbuy"), "einst_prs"))
        pmks_manager.Position = 0
        AddHandler pmks_manager.PositionChanged, AddressOf Me.PositionChanged
        AddHandler pmks_manager.CurrentChanged, AddressOf Me.CurrentChanged
 
Please help.
THanks
Denis.
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform