TDBGrid constructor

const TDBGrid({
  1. Key? key,
  2. required TDataSource? dataSource,
  3. TDBGridColumns? columns,
  4. bool readOnly = false,
  5. TDBGridOptions options = const {TDBGridOption.dgEditing, TDBGridOption.dgTitles, TDBGridOption.dgColumnResize, TDBGridOption.dgColLines, TDBGridOption.dgRowLines},
  6. double? width,
  7. double? height,
  8. Future<void> onRowPost()?,
  9. TDBGridLookupResolver? lookupResolver,
  10. void onRowActivate(
    1. int row
    )?,
  11. VoidCallback? onExitLastRow,
  12. Future<void> onRowInsert()?,
})

Implementation

const TDBGrid({
  super.key,
  required this.dataSource,
  this.columns,
  this.readOnly = false,
  this.options = const {
    TDBGridOption.dgEditing,
    TDBGridOption.dgTitles,
    TDBGridOption.dgColumnResize,
    TDBGridOption.dgColLines,
    TDBGridOption.dgRowLines,
  },
  this.width,
  this.height,
  this.onRowPost,
  this.lookupResolver,
  this.onRowActivate,
  this.onExitLastRow,
  this.onRowInsert,
});