How to customize DataGridView cells?
|
Article Information
|
Article relates to VIBlend DataGridView for WinForms
|
How To
|
Customize the data grid cells.
|
Solution
|
To achieve this, follow these steps:
|
1. Create a new instance of the vDataGridView via drag and drop from the toolbox or create it programmatically.
|
2. Create rows and columns.
|
|
3. Fill the grid with sample data.
|
|
4. Get one of the built-in cell styles.
|
|
5. Customize the cell’s style. You can customize its background, border, text, font, etc.
|
|
6. Finally, apply the style to the top-left grid cell.
|
|
|