Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to Refresh Form?
Message
From
06/09/2005 10:14:09
 
 
To
All
General information
Forum:
ASP.NET
Category:
Other
Title:
How to Refresh Form?
Environment versions
Environment:
VB.NET 1.1
OS:
Windows XP SP2
Network:
Windows XP
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01046996
Message ID:
01046996
Views:
45
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.
Next
Reply
Map
View

Click here to load this message in the networking platform