PdcDataGrids.GetGridByName
Jump to navigation
Jump to search
Declaration
GetGridByName(GridName as String,IndexName as String) as PdcDataGrid
Description
Notes
This method returns the grid corresponding with the given name. The lines in the grid are sorted by the applied columnname (second parameter).
Code example
This code example shows the gridname only if the activewindowkey is "PB". This is the delivery note screen.
dim activegrid
if pdc.Windows.ActiveWindow.WindowKey = "PB" then
set activegrid = pdc.Windows.ActiveWindow.Datagrids.GetGridByName("PDCGrid1", "PR_POS")
if IsValid(activegrid) then
msgbox activegrid.GridName
end if
set activegrid = nothing
end if
Availability
Available since April 2010 (from version 4.1)