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.comSuccess 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.