Windows Forms Datagrid Sample: FlexGrid Showcase (C#)

This sample is a .NET 6.0 Windows Forms application that demonstrates how to use GrapeCity FlexGrid, a Windows Forms Datagrid control.

The sample shows different operations with FlexGrid:

  • Search
  • Formatting
  • Data grouping

Screenshot with applied conditional formatting

Screenshot with grouped data

There are several GrapeCity packages used in the sample:

For more code examples and tutorials see the documentation.

Mentioned controls and packages require a valid license for runtime testing and distribution.

Also there is 30-day trial for evaluation purposes.

For more licensing information visit www.grapecity.com/componentone/licensing.

Sample prerequisites

This sample is written in C# and targets .NET 6.0 running on Windows. It requires the .NET 6.0 SDK.

Building the sample

To download and run the sample, follow these steps:

  1. Download and unzip the sample.
  2. In Visual Studio 2022 or later:
    1. On the menu bar, choose File > Open > Project/Solution.
    2. Navigate to the folder that holds the unzipped sample code, and open the project (.csproj) file.
    3. Choose the F5 key, or Ctrl+F5 keys, to run the project.
  3. From the command line:
    1. Navigate to the folder that holds the unzipped sample code.
    2. At the command line, type dotnet run.