Mashup Builder > Widgets > Standard Widgets > Grid Widget > Configuring Run-Time Options for the Grid
Configuring Run-Time Options for the Grid
In addition to sorting and editing, you can use configure widget properties to control how you can use the Grid at run time.
Add a display menu to control the visibility and order of columns.
Resize and reorder columns
Add a column that shows row numbers
Adding a Columns Display Menu
You can add a drop-down menu to control the visibility of columns at run time. When you open the menu, the available columns are listed based on their default order as configured at design time or using JSON configuration.
Use the widget ColumnsMenuOptions property to control the options that are available on the menu. You can configure the column visibility, order, or both. Select None to hide the menu.
Resizing and Reordering Columns
To enable column resizing, set the widget ResizeColumns property to True. At run time, click and drag the divider lines within the header row to resize columns. You can set a minimum and a maximum width for each column using the widget configuration dialog box. The default minimum width for columns is 75 pixels.
To enable column reordering, set the widget ReoderColumns property to True. At run time, you can drag column headings to change the order.
Adding Row Numbers
To show the row numbers, set the widget ShowRowNumbers property to True. A column that shows the number of each row is added to the grid.
Was this helpful?