setColumnCaption method

Future<void> setColumnCaption(
  1. int col,
  2. String caption
)

Set the caption shown in the top column-indicator band for a column.

Implementation

Future<void> setColumnCaption(int col, String caption) async {
  await VolvoxGridService.DefineColumns(DefineColumnsRequest()
    ..gridId = _gridId
    ..columns.add(ColumnDef()
      ..index = col
      ..caption = caption));
  notifyListeners();
}