WireLess Studio Widgets Developer's Guide |
Removes the rows of a WS_LIST_CTRL widget.
VARIANT_BOOL ClearRowsByName(LPCTSTR sObjectName);
VARIANT_BOOL ClearRowsById(SHORT usObjectId);
On success, ClearRows returns TRUE, FALSE otherwise. To get extended information, call WStError::GetLastErrorCode.
To use this method the current load mode must be WS_LIST_CTRL_LOAD_FROM_MEM (See SetLoadMode for more details).
using WirelessStudioOleWidgets; WStWidget oWidget = new WStWidget(); short sListCtrlId= 4; oFactory.CreateWidgetById((short)WSTFactoryConstants.WS_LIST_CTRL, sListCtrlId, "", 0,0, 50, 50, ""); oWidget.AddColumById(sListCtrlId, 40, "Product Id"); oWidget.AddRowById(sListCtrlId, 0); oWidget.AddRowById(sListCtrlId, 0); oWidget.AddRowById(sListCtrlId, 0); oWidget.ClearRowsById(sListCtrlId);
Public wsWidget As New WStWidget ... Case "clearRowsBtn" 'Clears the rows of the list ctrl wsWidget.ClearRowsByName "myListCtrl" ...
AddColumn | DeleteRow | SetRowText | SetRowIcon | AddRow | ClearRows | GetSelectedItem | ReadRowsFromFile | SetLoadMode
WStWiget class reference | WStForm class reference | WStFactory class reference | WStError class reference
WireLess Studio by SofToGo S.A. | Visit our site www.softogo.com | Contact us help@softogo.com |