Show / Hide Table of Contents

Class GPALDataGridView

A GPAL checkbox instantiateds with GPAL,Checkbox for use on GPAL forms.
Callback EventHandler is invoked on the GPALCheckbox.WindowsControl.CheckChanged event.
Default is not checked

Inheritance
System.Object
GPALControl
GPALDataGridView
Implements
IAllowControlSettingsAndFontSettings
IAllowControlSettings
IAllowFontSettings
Inherited Members
GPALControl.FontType
GPALControl.TextAlignment
GPALControl.AutoSize
GPALControl.ControlAlignment
GPALControl.WithFont(Font)
GPALControl.WithTextAlignment(ContentAlignment)
GPALControl.WithAlignment(ContentAlignment)
GPALControl.WithAutoSize(Boolean)
GPALControl.Text
GPALControl.Name
GPALControl.Tag
GPALControl.WindowsControl
GPALControl.ControlType
GPALControl.WithShortcutKey(Keys)
GPALControl.WithCallback(EventHandler)
GPALControl.WithName(String)
GPALControl.WithTag(Object)
GPALControl.WithText(String)
GPALControl.ToGPALObject()
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: GenerallyPositive.GPALForm
Assembly: GPAL.dll
Syntax
public class GPALDataGridView : GPALControl, IAllowControlSettingsAndFontSettings, IAllowControlSettings, IAllowFontSettings
Examples
static GPALCheckbox gPALCheckbox1 = (GPALCheckbox)GPAL.Checkbox
    .WithChecked(true)
    .WithText("Overwrite File")
    .WithCallback(CheckboxHandler); // on check changed event handler

GPALForm myForm = (GPALForm)GPAL.Form
    .WithTitle("Simple Form Test")
    .WithFormControl(gPALCheckbox1)
    .ShowDialog();

Properties

CurrentCell

Runtime access to un/check the checkbox

Declaration
public DataGridViewCell CurrentCell { get; set; }
Property Value
Type Description
System.Windows.Forms.DataGridViewCell

True [checked]
False [default - unchecked]

Enabled

Runtime access to Enable/Disable the checkbox.

Declaration
public bool Enabled { get; set; }
Property Value
Type Description
System.Boolean

True [default] - enabled
False - disabled

Methods

WithCurrentCell(DataGridViewCell)

Sets whether the checkbox is checked.

Declaration
public IAllowControlSettings WithCurrentCell(DataGridViewCell dataGridCell)
Parameters
Type Name Description
System.Windows.Forms.DataGridViewCell dataGridCell
Returns
Type Description
IAllowControlSettings

Fluent interface to define more settings

WithEnabled(Boolean)

Fluent interface to set the initial state of the control

Declaration
public IAllowControlSettings WithEnabled(bool enabled)
Parameters
Type Name Description
System.Boolean enabled

True [default]
False

Returns
Type Description
IAllowControlSettings

Fluent interface to define more settings

Implements

IAllowControlSettingsAndFontSettings
IAllowControlSettings
IAllowFontSettings
In This Article
Back to top Generated by DocFX