func init // adds using namespace sys.add_use('System.Windows.Forms') sys.add_use('System.ComponentModel') // initialize instance if(isdef("DataGridView")) warning(this.name + ' - manager does not defined') else this.ctrl = d("DataGridView", 20) end // makes implementation methods for properties sys._prop_init('AdjustedTopLeftHeaderBorderStyle', 1, 0, 0, this.ctrl) sys._prop_init('AdvancedCellBorderStyle', 1, 0, 0, this.ctrl) sys._prop_init('AdvancedColumnHeadersBorderStyle', 1, 0, 0, this.ctrl) sys._prop_init('AdvancedRowHeadersBorderStyle', 1, 0, 0, this.ctrl) sys._prop_init('AllowUserToAddRows', 1, 0, 104, this.ctrl) sys._prop_init('AllowUserToDeleteRows', 1, 0, 104, this.ctrl) sys._prop_init('AllowUserToOrderColumns', 1, 0, 104, this.ctrl) sys._prop_init('AllowUserToResizeColumns', 1, 0, 104, this.ctrl) sys._prop_init('AllowUserToResizeRows', 1, 0, 104, this.ctrl) sys._prop_init('AlternatingRowsDefaultCellStyle', 1, 0, 0, this.ctrl) sys._prop_init('AutoGenerateColumns', 1, 0, 104, this.ctrl) sys._prop_init('.AutoSizeColumnsMode', 1, 0, 0, this.ctrl) sys._prop_init('.AutoSizeRowsMode', 1, 0, 0, this.ctrl) sys._prop_init('BackgroundColor', 1, 0, 0, this.ctrl) sys._prop_init('BorderStyle', 1, 0, 0, this.ctrl) sys._prop_init('CellBorderStyle', 1, 0, 0, this.ctrl) sys._prop_init('ClipboardCopyMode', 1, 0, 0, this.ctrl) sys._prop_init('ColumnCount', 1, 0, 1, this.ctrl) sys._prop_init('ColumnHeadersBorderStyle', 1, 0, 0, this.ctrl) sys._prop_init('ColumnHeadersDefaultCellStyle', 1, 0, 0, this.ctrl) sys._prop_init('ColumnHeadersHeight', 1, 0, 1, this.ctrl) sys._prop_init('ColumnHeadersHeightSizeMode', 1, 0, 0, this.ctrl) sys._prop_init('ColumnHeadersVisible', 1, 0, 104, this.ctrl) sys._prop_init('Columns', 1, 0, 0, this.ctrl) sys._prop_init('CurrentCell', 1, 0, 0, this.ctrl) sys._prop_init('CurrentCellAddress', 1, 0, 0, this.ctrl) sys._prop_init('CurrentRow', 1, 0, 0, this.ctrl) sys._prop_init('DataMember', 1, 0, 2, this.ctrl) sys._prop_init('DataSource', 1, 0, 0, this.ctrl) sys._prop_init('DefaultCellStyle', 1, 0, 0, this.ctrl) sys._prop_init('DisplayRectangle', 1, 0, 0, this.ctrl) sys._prop_init('EditingControl', 1, 0, 0, this.ctrl) sys._prop_init('EditingPanel', 1, 0, 0, this.ctrl) sys._prop_init('EditMode', 1, 0, 0, this.ctrl) sys._prop_init('EnableHeadersVisualStyles', 1, 0, 104, this.ctrl) sys._prop_init('FirstDisplayedCell', 1, 0, 0, this.ctrl) sys._prop_init('FirstDisplayedScrollingColumnHiddenWidth', 1, 0, 1, this.ctrl) sys._prop_init('FirstDisplayedScrollingColumnIndex', 1, 0, 1, this.ctrl) sys._prop_init('FirstDisplayedScrollingRowIndex', 1, 0, 1, this.ctrl) sys._prop_init('Font', 1, 0, 0, this.ctrl) sys._prop_init('ForeColor', 1, 0, 0, this.ctrl) sys._prop_init('GridColor', 1, 0, 0, this.ctrl) sys._prop_init('HorizontalScrollingOffset', 1, 0, 1, this.ctrl) sys._prop_init('IsCurrentCellDirty', 1, 0, 104, this.ctrl) sys._prop_init('IsCurrentCellInEditMode', 1, 0, 104, this.ctrl) sys._prop_init('IsCurrentRowDirty', 1, 0, 104, this.ctrl) sys._prop_init('MultiSelect', 1, 0, 104, this.ctrl) sys._prop_init('NewRowIndex', 1, 0, 1, this.ctrl) sys._prop_init('ReadOnly', 1, 0, 104, this.ctrl) sys._prop_init('RowCount', 1, 0, 1, this.ctrl) sys._prop_init('RowHeadersBorderStyle', 1, 0, 0, this.ctrl) sys._prop_init('RowHeadersDefaultCellStyle', 1, 0, 0, this.ctrl) sys._prop_init('RowHeadersVisible', 1, 0, 104, this.ctrl) sys._prop_init('RowHeadersWidth', 1, 0, 1, this.ctrl) sys._prop_init('.RowHeadersWidthSizeMode', 1, 0, 0, this.ctrl) sys._prop_init('Rows', 1, 0, 0, this.ctrl) sys._prop_init('RowsDefaultCellStyle', 1, 0, 0, this.ctrl) sys._prop_init('RowTemplate', 1, 0, 0, this.ctrl) sys._prop_init('ScrollBars', 1, 0, 0, this.ctrl) sys._prop_init('SelectedCells', 1, 0, 0, this.ctrl) sys._prop_init('SelectedColumns', 1, 0, 0, this.ctrl) sys._prop_init('SelectedRows', 1, 0, 0, this.ctrl) sys._prop_init('SelectionMode', 1, 0, 0, this.ctrl) sys._prop_init('ShowCellErrors', 1, 0, 104, this.ctrl) sys._prop_init('ShowCellToolTips', 1, 0, 104, this.ctrl) sys._prop_init('ShowEditingIcon', 1, 0, 104, this.ctrl) sys._prop_init('ShowRowErrors', 1, 0, 104, this.ctrl) sys._prop_init('SortedColumn', 1, 0, 0, this.ctrl) sys._prop_init('SortOrder', 1, 0, 0, this.ctrl) sys._prop_init('StandardTab', 1, 0, 104, this.ctrl) sys._prop_init('TopLeftHeaderCell', 1, 0, 0, this.ctrl) sys._prop_init('UserSetCursor', 1, 0, 0, this.ctrl) sys._prop_init('VerticalScrollingOffset', 1, 0, 1, this.ctrl) sys._prop_init('VirtualMode', 1, 0, 104, this.ctrl) // makes implementation of methods as properties sys._mtd_as_prop_init('CancelEdit()', this.ctrl) sys._mtd_as_prop_init('EndEdit()', this.ctrl) sys._mtd_as_prop_init('GetClipboardContent()', this.ctrl) sys._mtd_as_prop_init('RefreshEdit()', this.ctrl) sys._mtd_as_prop_init('DataGridView', this.ctrl) // makes implementation of simple methods sys._method_init('AutoResizeColumnHeadersHeight', '', this.ctrl) sys._method_init('AutoResizeColumns', '', this.ctrl) sys._method_init('AutoResizeRows', '', this.ctrl) sys._method_init('ClearSelection', '', this.ctrl) sys._method_init('SelectAll', '', this.ctrl) end func doAdjustColumnHeaderBorderStyle(data) if(linked("onAdjustColumnHeaderBorderStyle")) event("onAdjustColumnHeaderBorderStyle", this.ctrl + '.AdjustColumnHeaderBorderStyle(' + d("dataGridViewAdvancedBorderStyleInput") + ', ' + d("dataGridViewAdvancedBorderStylePlaceholder") + ', ' + d("isFirstDisplayedColumn") + ', ' + d("isLastVisibleColumn") + ')') else blk.println(this.ctrl, '.AdjustColumnHeaderBorderStyle(', d("dataGridViewAdvancedBorderStyleInput"), ', ', d("dataGridViewAdvancedBorderStylePlaceholder"), ', ', d("isFirstDisplayedColumn"), ', ', d("isLastVisibleColumn"), ');') end end func doAreAllCellsSelected(data) if(linked("onAreAllCellsSelected")) event("onAreAllCellsSelected", this.ctrl + '.AreAllCellsSelected(' + d("includeInvisibleCells") + ')') else blk.println(this.ctrl, '.AreAllCellsSelected(', d("includeInvisibleCells"), ');') end end func doAutoResizeColumn(data) blk.println(this.ctrl, '.AutoResizeColumn(', d("columnIndex"), ');') end func doAutoResizeColumn2(data) blk.println(this.ctrl, '.AutoResizeColumn(', d("columnIndex"), ', ', d("autoSizeColumnMode"), ');') end func doAutoResizeColumnHeadersHeight2(data) blk.println(this.ctrl, '.AutoResizeColumnHeadersHeight(', d("columnIndex"), ');') end func doAutoResizeColumns2(data) blk.println(this.ctrl, '.AutoResizeColumns(', d("autoSizeColumnsMode"), ');') end func doAutoResizeRow(data) blk.println(this.ctrl, '.AutoResizeRow(', d("rowIndex"), ');') end func doAutoResizeRow2(data) blk.println(this.ctrl, '.AutoResizeRow(', d("rowIndex"), ', ', d("autoSizeRowMode"), ');') end func doAutoResizeRowHeadersWidth(data) blk.println(this.ctrl, '.AutoResizeRowHeadersWidth(', d("rowHeadersWidthSizeMode"), ');') end func doAutoResizeRowHeadersWidth2(data) blk.println(this.ctrl, '.AutoResizeRowHeadersWidth(', d("rowIndex"), ', ', d("rowHeadersWidthSizeMode"), ');') end func doAutoResizeRows2(data) blk.println(this.ctrl, '.AutoResizeRows(', d("autoSizeRowsMode"), ');') end func doBeginEdit(data) if(linked("onBeginEdit")) event("onBeginEdit", this.ctrl + '.BeginEdit(' + d("selectAll") + ')') else blk.println(this.ctrl, '.BeginEdit(', d("selectAll"), ');') end end func doCommitEdit(data) if(linked("onCommitEdit")) event("onCommitEdit", this.ctrl + '.CommitEdit(' + d("context") + ')') else blk.println(this.ctrl, '.CommitEdit(', d("context"), ');') end end func doDisplayedColumnCount(data) if(linked("onDisplayedColumnCount")) event("onDisplayedColumnCount", this.ctrl + '.DisplayedColumnCount(' + d("includePartialColumns") + ')') else blk.println(this.ctrl, '.DisplayedColumnCount(', d("includePartialColumns"), ');') end end func doDisplayedRowCount(data) if(linked("onDisplayedRowCount")) event("onDisplayedRowCount", this.ctrl + '.DisplayedRowCount(' + d("includePartialRow") + ')') else blk.println(this.ctrl, '.DisplayedRowCount(', d("includePartialRow"), ');') end end func doEndEdit2(data) if(linked("onEndEdit")) event("onEndEdit", this.ctrl + '.EndEdit(' + d("context") + ')') else blk.println(this.ctrl, '.EndEdit(', d("context"), ');') end end func doGetCellCount(data) if(linked("onGetCellCount")) event("onGetCellCount", this.ctrl + '.GetCellCount(' + d("includeFilter") + ')') else blk.println(this.ctrl, '.GetCellCount(', d("includeFilter"), ');') end end func doGetCellDisplayRectangle(data) if(linked("onGetCellDisplayRectangle")) event("onGetCellDisplayRectangle", this.ctrl + '.GetCellDisplayRectangle(' + d("columnIndex") + ', ' + d("rowIndex") + ', ' + d("cutOverflow") + ')') else blk.println(this.ctrl, '.GetCellDisplayRectangle(', d("columnIndex"), ', ', d("rowIndex"), ', ', d("cutOverflow"), ');') end end func doGetColumnDisplayRectangle(data) if(linked("onGetColumnDisplayRectangle")) event("onGetColumnDisplayRectangle", this.ctrl + '.GetColumnDisplayRectangle(' + d("columnIndex") + ', ' + d("cutOverflow") + ')') else blk.println(this.ctrl, '.GetColumnDisplayRectangle(', d("columnIndex"), ', ', d("cutOverflow"), ');') end end func doGetRowDisplayRectangle(data) if(linked("onGetRowDisplayRectangle")) event("onGetRowDisplayRectangle", this.ctrl + '.GetRowDisplayRectangle(' + d("rowIndex") + ', ' + d("cutOverflow") + ')') else blk.println(this.ctrl, '.GetRowDisplayRectangle(', d("rowIndex"), ', ', d("cutOverflow"), ');') end end func doHitTest(data) if(linked("onHitTest")) event("onHitTest", this.ctrl + '.HitTest(' + d("x") + ', ' + d("y") + ')') else blk.println(this.ctrl, '.HitTest(', d("x"), ', ', d("y"), ');') end end func doInvalidateCell(data) blk.println(this.ctrl, '.InvalidateCell(', d("dataGridViewCell"), ');') end func doInvalidateCell2(data) blk.println(this.ctrl, '.InvalidateCell(', d("columnIndex"), ', ', d("rowIndex"), ');') end func doInvalidateColumn(data) blk.println(this.ctrl, '.InvalidateColumn(', d("columnIndex"), ');') end func doInvalidateRow(data) blk.println(this.ctrl, '.InvalidateRow(', d("rowIndex"), ');') end func doNotifyCurrentCellDirty(data) blk.println(this.ctrl, '.NotifyCurrentCellDirty(', d("dirty"), ');') end func doSort(data) blk.println(this.ctrl, '.Sort(', d("comparer"), ');') end func doSort2(data) blk.println(this.ctrl, '.Sort(', d("dataGridViewColumn"), ', ', d("direction"), ');') end func doUpdateCellErrorText(data) blk.println(this.ctrl, '.UpdateCellErrorText(', d("columnIndex"), ', ', d("rowIndex"), ');') end func doUpdateCellValue(data) blk.println(this.ctrl, '.UpdateCellValue(', d("columnIndex"), ', ', d("rowIndex"), ');') end func doUpdateRowErrorText(data) blk.println(this.ctrl, '.UpdateRowErrorText(', d("rowIndex"), ');') end func doUpdateRowErrorText2(data) blk.println(this.ctrl, '.UpdateRowErrorText(', d("rowIndexStart"), ', ', d("rowIndexEnd"), ');') end func doUpdateRowHeightInfo(data) blk.println(this.ctrl, '.UpdateRowHeightInfo(', d("rowIndex"), ', ', d("updateToEnd"), ');') end