Hi,
I am getting this error. My grid is a primary collection.
I am trying to use the function GetGridValue(curRow, curCol)Someone to help me please??
Can you provide an image or description of the error?
Sounds like you're trying to access a grid that is assigned to an IDO collection. The framework wants you to access collections using collection objects, not the grid components.
if that is the case, the following should get you moving in the right direction (examples in C#):
int x = ThisForm.Components["GridComp"].IDOCollection.GetCurrentObjectIndex(); string y = ThisForm.Components[ "GridComp" ].IDOCollection.GetObjectProperty("TheThingIWant", x); string z = ThisForm.Components[ "GridComp" ].IDOCollection.GetCurrentObjectProperty("TheCurrentlySelectedThingIWant");
It happens when I am trying to use some functions... In this example I use the function GetGridCurrentRow()
oGrid = ThisForm.Components("PickListGrid") iCurrentRow = oGrid.GetGridCurrentRow()