B-Arts DocumentationIndice generale

BGriglia

Linea B-Arts Legacy: questa scheda descrive B-ArtsFramework (.NET Framework 4.7.2). Non usare firme o namespace come se appartenessero alla linea Classic successiva o al BFramework moderno .NET 10.

Identità

  • Assembly/progetto: B-ArtsFramework.

  • Target: .NET Framework 4.7.2.

  • Namespace CLR: BArts.BWindows.BControls.

  • Nome completo: BArts.BWindows.BControls.BGriglia.

  • Tipo: class.

  • Ambito: runtime/interfaccia pubblica.

Ruolo

Tipo pubblico dei controlli Windows Forms della linea Legacy B-Arts.

Dichiarazione

<DefaultEvent("CellaModificata"), DefaultProperty("Colonne")> _ Public Class BGriglia

Tipi annidati pubblici

Proprietà

Nome Dichiarazione
AutoDeleteRow <Category("Azione"), Description("Se True si consente eliminazione righe.")> _ Public Property AutoDeleteRow() As Boolean
AnnullaInserimento Public Property AnnullaInserimento() As Boolean
Direzione <Browsable(False)> _ Public Property Direzione() As mbeDirezione
Invio <Description("Imposta l'avanzamento del fuoco al controllo successivo con la pressione del tasto INVIO")> _ Public Property Invio() As Boolean
Colonne <Editor(GetType(MBEditorColonne), GetType(UITypeEditor))> _ Public Property Colonne() As String
ColMapping <Browsable(False)> _ Public Property ColMapping() As String
ColTipoDato <Browsable(False)> _ Public Property ColTipoDato() As String
ColTipoNum <Browsable(False)> _ Public Property ColTipoNum() As String
ColTipoControllo <Browsable(False)> _ Public Property ColTipoControllo() As String
ColBloccata <Browsable(False)> _ Public Property ColBloccata() As String
ColObbligatoria <Browsable(False)> _ Public Property ColObbligatoria() As String
ColAllineamento <Browsable(False)> _ Public Property ColAllineamento() As String
ColCifreDec <Browsable(False)> _ Public Property ColCifreDec() As String
ColNumDecVis <Browsable(False)> _ Public Property ColNumDecVis() As String
ColLarghezza <Browsable(False)> _ Public Property ColLarghezza() As String
ColHelp <Browsable(False)> _ Public Property ColHelp() As String
ColElenco <Browsable(False)> _ Public Property ColElenco() As String
ColMaxLength <Browsable(False)> _ Public Property ColMaxLength() As String
ColMaxLengthAuto <Browsable(False)> _ Public Property ColMaxLengthAuto() As String
ColFormat <Browsable(False)> _ Public Property ColFormat() As String
ColStrFormat <Browsable(False)> _ Public Property ColStrFormat() As String
Font Public Shadows Property Font() As System.Drawing.Font
FontRighe <Category("Aspetto"), Description("Imposta il font delle righe della griglia")> _ Public Property FontRighe() As System.Drawing.Font
BackColorCella Public Property BackColorCella() As Color
ForeColorCella Public Property ForeColorCella() As Color
BackColorCellaBloccata Public Property BackColorCellaBloccata() As Color
ForeColorCellaBloccata Public Property ForeColorCellaBloccata() As Color
BackColorCellaSel Public Property BackColorCellaSel() As Color
ForeColorCellaSel Public Property ForeColorCellaSel() As Color
StatusBarVisible Public Property StatusBarVisible() As Boolean
ColumnHeaderBorderStyle Public Property ColumnHeaderBorderStyle() As DataGridViewHeaderBorderStyle
RowHeaderBorderStyle Public Property RowHeaderBorderStyle() As DataGridViewHeaderBorderStyle
RowHeaderStyle Public Property RowHeaderStyle() As DataGridViewCellStyle
ColumnHeaderStyle Public Property ColumnHeaderStyle() As DataGridViewCellStyle
Backgroundcolor Public Property Backgroundcolor() As Color
MaxRighe Public Property MaxRighe() As Integer
MinRighe Public Property MinRighe() As Integer
RigheBloccate Public Property RigheBloccate() As Boolean
KeyHelpClick Public Property KeyHelpClick() As Keys
KeyElenco Public Property KeyElenco() As Keys
CurrentCell Public ReadOnly Property CurrentCell() As DataGridCell
CelleSelezionate Public ReadOnly Property CelleSelezionate() As DataGridViewSelectedCellCollection
RigheSelezionate Public ReadOnly Property RigheSelezionate() As DataGridViewSelectedRowCollection
ColonneSelezionate Public ReadOnly Property ColonneSelezionate() As DataGridViewSelectedColumnCollection
Connection Public Property Connection() As BData.BConnection
DataTable Public ReadOnly Property DataTable() As BData.BDataTable
DataTableKey Public ReadOnly Property DataTableKey() As BData.BDataTable
StateEditing Public ReadOnly Property StateEditing() As Boolean
Count Public ReadOnly Property Count() As Integer
ProponiValore Public Property ProponiValore() As Object

Eventi

Nome Dichiarazione
CellaClick Public Event CellaClick(ByVal Rigo As Integer, ByVal Col As Integer)
CellaConfermata Public Event CellaConfermata(ByVal Rigo As Integer, ByVal Col As Integer, ByVal CommitByReturn As Boolean)
CellaModificata Public Event CellaModificata(ByVal Rigo As Integer, ByVal Col As Integer)
EntroInCella Public Event EntroInCella(ByVal Rigo As Integer, ByVal Col As Integer)
EscoDaCella Public Event EscoDaCella(ByVal Rigo As Integer, ByVal Col As Integer)
StateChange Public Event StateChange(ByVal Rigo As Integer, ByVal Col As Integer)
RowChange Public Event RowChange(ByVal Rigo As Integer)
HelpClick Public Event HelpClick(ByVal Rigo As Integer, ByVal Col As Integer)
AfterDelete Public Event AfterDelete(ByVal Rigo As Integer, ByVal Esito As Boolean)
BeforeDelete Public Event BeforeDelete(ByVal Rigo As Integer)
RowsRemoved Public Event RowsRemoved()
GestioneMouse Public Event GestioneMouse(ByVal Celle As Object)

Metodi

Nome Dichiarazione
AzzeraColonne Public Sub AzzeraColonne()
EliminaColonna Public Function EliminaColonna(ByVal Index As Integer) As Boolean
AggiungiColonna Public Function AggiungiColonna(ByVal Nome As String, ByVal Larghezza As Long, ByVal MaxLarghezza As Long, _ ByVal TipoDato As MBGrigliaColonna.mbeTipoDato, ByVal TipoNum As MBGrigliaColonna.mbeTipoNum, _ ByVal Bloccata As MBGrigliaColonna.mbeBloccata, ByVal Obbligatoria As MBGrigliaColonna.mbeObbligatoria, _ Optional ByVal Tipo As MBGrigliaCampoElenco.mbeTipo = MBGrigliaCampoElenco.mbeTipo.RICERCA, _ Optional ByVal NomeTabella As String = "", _ Optional ByVal CampoKey As String = "", _ Optional ByVal CampoDescrizione As String = "", _ Optional ByVal Condizione As String = "", _ Optional ByVal CampoOrdine As String = "", _ Optional ByVal CampoRicerca As MBGrigliaCampoElenco.mbeTipoRicerca = MBGrigliaCampoElenco.mbeTipoRicerca.ENTRAMBI, _ Optional ByVal TipoControllo As MBGrigliaCampoElenco.mbeTipoDropDown = MBGrigliaCampoElenco.mbeTipoDropDown.NORMALE, _ Optional ByVal TipoCampoKey As MBGrigliaColonna.mbeTipoDato = MBGrigliaColonna.mbeTipoDato.Numerico, _ Optional ByVal CampoVisibile As MBGrigliaCampoElenco.mbeCampoVisibile = MBGrigliaCampoElenco.mbeCampoVisibile.DESCRIZIONE) As Boolean
AggiungiColonna Public Function AggiungiColonna(ByVal colmbg As MBGrigliaColonna) As Boolean
RefreshColumns <Description("Ridisegna le colonne della griglia causando la perdita dei dati inseriti.")> _ Public Sub RefreshColumns()
RedrawControl <Description("Ridisegna l'intero controllo causando la perdita dei dati inseriti nella griglia.")> _ Public Sub RedrawControl()
ResizeControl Public Sub ResizeControl()
LeggiCella Public Function LeggiCella(ByVal rigo As Integer, ByVal col As Integer, ByVal Key As Boolean) As Object
ScriviCella Public Sub ScriviCella(ByVal Valore As Object, ByVal rigo As Integer, ByVal col As Integer, Optional ByVal Key As Boolean = False)
LeggiKey Public Function LeggiKey(ByVal rigo As Integer, ByVal col As Integer) As Object
ScriviKey Public Sub ScriviKey(ByVal Valore As Object, ByVal rigo As Integer, ByVal col As Integer)
Clear Public Function Clear() As Boolean
AddRow Public Function AddRow(Optional ByVal RigaVisibile As Boolean = False) As Boolean
DeleteRow Public Function DeleteRow(ByVal Index As Integer) As Boolean
GetColonna Public Function GetColonna(ByVal indexCol As Integer) As MBGrigliaColonna
SetColonna <Description("Ridisegna la colonna specificata senza salvare le caratteristiche.")> _ Public Function SetColonna(ByVal indexCol As Integer, ByVal col As MBGrigliaColonna) As Boolean
RedrawColorOnRow Public Function RedrawColorOnRow(ByVal rowIndex As Integer) As Boolean
SetFocus Public Function SetFocus(ByVal rowIndex As Integer, ByVal colIndex As Integer, Optional ByVal OnEdit As Boolean = False) As Boolean
SpostaSuCella Public Sub SpostaSuCella(ByVal Rigo As Integer, ByVal Colonna As Integer)
IsRowInsert Public Function IsRowInsert(ByVal rowIndex As Integer) As Boolean
DisattivaEditing Public Sub DisattivaEditing()

Sorgenti verificati

  • Controls\BGriglia\BGriglia.vb