Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Splitting a Grid Control
Message
De
01/03/2002 22:33:16
 
 
À
01/03/2002 22:11:19
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00626772
Message ID:
00627324
Vues:
13
Hi vlad, where will i call the doscroll event of the grid? Will I call it in the init of the form? I noticed something unusual with the doscroll() method. The code is show below.

In the init of the form, i put these codes

With thisform.ni_Sysgrid1
.NI_Column7.NI_cboCompID.rowsource = "noninv.itemid"
.NI_Column7.NI_cboCompID.value = ""

.RecordSourceType = 1
.RecordSource = " "
.RecordSource = "Dispatch"
.column1.ControlSource = "Dispatch.active"
.column2.ControlSource = "Dispatch.itemid"
.column3.ControlSource = "Dispatch.desc"
.column4.ControlSource = "Dispatch.balance"
.NI_Column5.ControlSource = "Dispatch.serial"
.NI_column6.ControlSource = "Dispatch.unitprice"
.NI_Column7.ControlSource = "Dispatch.compid"

&& Set Grid Scroll
.Panel = 1
.DoScroll(5)
.DoScroll(5)
Endwith

if i execute this code with set step on, the code runs perfectly, but when i remove the set step on, the grid starts on the first column again. Is there something wrong with the code?
Music Rocks www.musicreserve.blogspot.com
Success is 1% Inspiration & 99% Perspiration
God Sometimes Delays His Help to Test Our Faith and Energize Our Prayers
Our Boat May Be Tossed While He Sleeps, But He Wakes Up Before it Sinks.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform