https://github.com/mikemajesty/cooldatagridview
Library - Improve the Data Grid View UI | C# Windows Form.
https://github.com/mikemajesty/cooldatagridview
datagridview grid gridview website windows
Last synced: about 1 year ago
JSON representation
Library - Improve the Data Grid View UI | C# Windows Form.
- Host: GitHub
- URL: https://github.com/mikemajesty/cooldatagridview
- Owner: mikemajesty
- License: mit
- Created: 2016-02-28T23:58:50.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2020-10-01T07:27:04.000Z (over 5 years ago)
- Last Synced: 2025-04-18T10:22:58.621Z (about 1 year ago)
- Topics: datagridview, grid, gridview, website, windows
- Language: C#
- Homepage:
- Size: 13.7 KB
- Stars: 16
- Watchers: 4
- Forks: 10
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# Cooldatagridview - Improve the designer of your datagridview.
##### DatagridView BEFORE use the cooldatagridview
[](https://postimg.org/image/amfc1l5cn/)
##### DatagridView AFTER use the cooldatagridview
[](https://postimg.org/image/ufrfuaiqf/)
### How to use
In your Package Manager Console type
```
Install-Package cooldatagridview
```
#### Then import project namespace
```C#
using cooldatagridview;
```
### Exemple
```C#
dataGridView1.DataSource = yourObjetist.ToList();
dataGridView1.CoolGrid();
```
### Another functionality
cooldatagridview also allows the user to navigate the arrow keys on the lines of datagridview.
Overwrite the ProcessCmdKey method of the form and place the following code
```C#
protected override bool ProcessCmdKey(ref Message msg, Keys keyData)
{
switch (keyData)
{
case Keys.Up:
dataGridView1.MoveToUp();
break;
case Keys.Down:
dataGridView1.MoveToDown();
break;
default:
break;
}
return base.ProcessCmdKey(ref msg, keyData);
}
```
### One more
If you want to hide a column of datagridview you can use
```C#
dataGridView1.HideColumn("ID");
```
### License
It is available under the MIT license.
[License](https://opensource.org/licenses/mit-license.php)