BView
Identità
Namespace:
B.BWindows.BControlsBase:
DataGridView
Scopo
DataGridView specializzato con navigazione direzionale, inserimento/eliminazione controllata, lettura e scrittura delle celle e gestione delle righe vuote.
API specifica
Count: numero di righe gestite.Direzione: avanti o indietro.AutoDeleteRow: abilita l'eliminazione automatica.ShowQuestionBeforeDelete: richiede conferma.AddRow,DeleteRow,Clear,ClearRowEmpty.WriteCell(value, row, column, key)eReadCell(row, column).IsRowInsert()eFocusOnCel(...).Eventi
BeforeDelete,AfterDelete,CellKeyDown,CellKeyPress.
Riferimento API completo
Identità
Namespace:
B.BWindows.BControlsAssembly:
BFrameworkControlsTipo:
classClasse base:
DataGridViewSorgente API: versione
5.0.0
Dichiarazione
public class BView : DataGridView
Costruttori
BView()
Campi pubblici
Nessun campo pubblico dichiarato.
Proprietà
| Proprietà | Tipo | Accesso |
|---|---|---|
AutoDeleteRow |
bool |
get/set |
Count |
int |
get |
Direzione |
mbeDirezione |
get/set |
ShowQuestionBeforeDelete |
bool |
get/set |
Eventi CLR
AfterDelete:AfterDeleteEventHandlerBeforeDelete:BeforeDeleteEventHandlerCellKeyDown:CellKeyDownEventHandlerCellKeyPress:CellKeyPressEventHandler
Metodi
bool AddRow()bool Clear()bool ClearRowEmpty()bool DeleteRow(int index)bool FocusOnCel(int Rigo, int Col, bool setAnchorCellAddress = true, bool validateCurrentCell = true, bool throughMouseClick = true)bool IsRowInsert()object ReadCell(int RowIndex, int ColIndex)bool WriteCell(object Value, int RowIndex, int ColIndex, bool Key = false)
Tipi annidati pubblici
Delegate AfterDeleteEventHandler
Firma:
void AfterDeleteEventHandler(int rowIndex, bool result)
Delegate BeforeDeleteEventHandler
Firma:
void BeforeDeleteEventHandler(int rowIndex)
Delegate CellKeyDownEventHandler
Firma:
void CellKeyDownEventHandler(object sender, KeyEventArgs e)
Delegate CellKeyPressEventHandler
Firma:
void CellKeyPressEventHandler(object sender, KeyPressEventArgs e)
mbeDirezione
mbeAVANTI=0mbeINDIETRO=1
mbeFormatoElenco
mbeNORMALE=0mbeESTESO=1
mbeTipoDato
mbeAlfanumerico=0mbeAlfabetico=1mbeNumerico=2mbeValuta=3mbeOra=4mbeData=5mbeElenco=6mbeImage=7mbeCheck=8mbeButton=9
mbeTipoElenco
FISSO=0VARIABILE=1RICERCA=2
