$99 VS $1000+. UI Control for ASP.NET AJAX(contains chart and gridview).
DataGridView for C#.NET WinForms
Create custom data grid cells to GirdView in C# for your .NET Windows Forms applications
Home > WinForms UI Controls > User Manual > Grid Cells Property in C#

Properties of GirdView Cells C# Class

The Cells are the unit representing data in Kettic DataGridView. While using the DataGridView component in C# Windows Forms application, users can easily customize and editing the cells for GridView and design amazing cells user interface for their C# Windows Forms application. The Kettic GridView Control allows users easily accessing, iterating, merging, formatting cells as well as creating custom cells for their Data Grid in .NET projects.

How to Edit Grid Cells in C#

To edit the information of cells, we need to use the property KetticGridViewCellInformation C# class, which represent a single grid cell logically. The KetticGridViewCellInformation contains values, including, Value, ColumnInformation, RowInformation, and CellElement. The following are the detailed explanation of these properties to KetticGridViewCellInformation C# class.
  • Value, this property is used to indicate the value displayed in the grid cells
  • ColumnInformation, the property is used to indicate the DataGridViewColumn that the grid cell shows in
  • RowInformation, this property is used to indicate the GridViewRowInformation that the grid cell shows in.
  • CellElement, the property is used to indicate the associated visual element, GridCellElement, for the grid cell to C# GridView
The DataGirdView control uses virtualization to display the visual elements, so that only grid rows currently visible have a visual element. And when we scroll the grid, the visual elements will be reused. It is safe to use the CellElement only inside the CellFormatting event and for the current GridView cells. It will fire the CellFormatting event each time while updating the state of the grid cell to GridView component.
The KetticGridViewCellInformation also contains the EnsureVisible() method for users of the component to scroll the grid cell into our view.
C# code for applying KetticGridViewCellInformation class to GridView component in .NET Windows Forms application

GridViewRowInformation lastRow = ketticGridView1.Rows[ketticGridView1.Rows.Count - 1];
GridViewCellInformation cell = lastRow.Cells["JPG"];
if (cell.ColumnInformation.GetType() == typeof(GridViewCheckBoxColumn))
cell.Value = false;
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