Hi,
I have an ultragrid bound to a data source which is pointing to a query handle via a temp table.
DEFINE TEMP-TABLE ttGrid
FIELD field1 AS CHAR LABEL "Document Grouping".
DEFINE PRIVATE QUERY qu_Grid FOR ttGrid SCROLLING.
CREATE ttGrid.
ASSIGN
ttGrid.field1 = "sdasd".
CREATE ttGrid.
ASSIGN
ttGrid.field1 = "sdasd".
OPEN QUERY qu_Grid PRESELECT EACH ttGrid NO-LOCK.
IF TEMP-TABLE ttGrid:HAS-RECORDS THEN
DO:
bindingSource1:AllowEdit = FALSE.
bindingSource1:HANDLE = QUERY qu_Grid:HANDLE NO-ERROR.
END.
I also have a drop-down combo populated in a similar manner. My question is: How do I set my grid field as a combo type and have it display the combo data?
The examples I have found so far on the net don't seem to work or require the filed to be "un-bound".
Any help would be greatly appreciated.
Thanks,
Saquib.
In the UltraWinGridDesigner, choose the bands column you want for the dropdown and set its Style to DropDownList and its ValueList to the name of an UltraDropDown you have placed on the form. Set the UltraDropDown data source, display member, value member, and Visible (False) properties and your done.
Thankyou for your help.
Saquib.