$99 VS $1000+. UI Control for ASP.NET AJAX(contains chart and gridview).
Data Grid WinForms Control
Create data gird view in C# with modern user interface for your Windows Forms applications
Home > WinForms UI Controls > User Manual > CheckBox Column in C#

C# Grid CheckBox Column

The Kettic Data Grid Control uses the Data Grid Column objects to represent columns. The Kettic Data Grid Column is the base class of all types of grid columns, including the Grid CheckBox Column. The Grid CheckBox Column descends all features of the Kettic Data Grid Column parent class. So the Grid Column properties that are shared by the Grid CheckBox Column class provide custom appearance and C# events for building entire gird checkbox column in Windows Forms C# applications.

Generate Grid CheckBox Column in C#

The Kettic Grid CheckBox Column is able to display the Boolean data and also allows users to edit the Boolean data. Moreover, the Grid CheckBox Column will display the values as checkbox and allows users of the Data Grid Control to toggle the underlying Boolean data values by setting or clearing checkboxes. To create and add the grid checkbox column to Data Grid Control in C# projects, we can use the C# code snippet below.

GridCheckBoxColumn checkBoxColumn = new GridCheckBoxColumn();
checkBoxColumn.DataType = typeof(int);
checkBoxColumn.Name = "DiscontinuedColumn";
checkBoxColumn.FieldName = "Discontinued";
checkBoxColumn.HeaderText = "Discontinued?";
ketticGridView1.MasterTemplate.Columns.Add(checkBoxColumn);

ValueChanged event

When users of the Data Grid Control need to customize the checkbox column in a particular state, we can use the event, ValueChanged, to achieve this. The C# code below helps UI designers to check the active editor for Gird CheckBox column in their Windows Forms application.

void ketticGridView1_ValueChanged(object sender, EventArgs e)
{
if (this.ketticGridView1.ActiveEditor is KetticCheckBoxEditor)
{
Console.WriteLine(this.ketticGridView1.CurrentCell.RowIndex);
Console.WriteLine(this.ketticGridView1.ActiveEditor.Value);
}
}
UI Controlsfor Windows Forms
.NET WinForms UI Overview.NET WinForms UI Features.NET WinForms UI GuideC# WinForms UI DesignVB.NET WinForms UI Design
WinForms UI Controls