diff --git a/BBjGridExWidget.bbj b/BBjGridExWidget.bbj index 6d8cce8f..aa1a7164 100644 --- a/BBjGridExWidget.bbj +++ b/BBjGridExWidget.bbj @@ -587,6 +587,22 @@ rem --------------------api methods-------------------------------- #EnableFilter=enable methodend + rem /** + rem * set the label for the group column if the grid is a tree-grid + rem * defaults to "Group" + rem * @param label$ - the label + rem */ + method public void setGroupColumnLabel(BBjString label$) + #GroupColumnLabel$ = label$ + methodend + + rem /** + rem * get the label for the group column if the grid is a tree-grid + rem * @returns label$ + rem */ + method public BBjString getGroupColumnLabel() + return #GroupColumnLabel$ + methodend method public BBjGridExWidgetColumnState getColumnsState() diff --git a/Demo/TreeDemo.bbj b/Demo/TreeDemo.bbj index 7624b12a..0f06b2dc 100644 --- a/Demo/TreeDemo.bbj +++ b/Demo/TreeDemo.bbj @@ -16,6 +16,8 @@ wnd! = BBjAPI().openSysGui("X0").addWindow(10,10,1024,768,"BBj Grid Ex Demo") grid! = new BBjGridExWidget(wnd!,100,0,0,1024,768) +grid!.setGroupColumnLabel("Customer") + wnd! .setCallback(BBjAPI.ON_CLOSE,"byebye") wnd! .setCallback(BBjAPI.ON_RESIZE,"resize")