cooldatagridview icon indicating copy to clipboard operation
cooldatagridview copied to clipboard

Library - Improve the Data Grid View UI | C# Windows Form.

Cooldatagridview - Improve the designer of your datagridview.

DatagridView BEFORE use the cooldatagridview

1.png

DatagridView AFTER use the cooldatagridview

2.png

How to use

In your Package Manager Console type

  Install-Package cooldatagridview

Then import project namespace

 using cooldatagridview;

Exemple

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

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

dataGridView1.HideColumn("ID");

License

It is available under the MIT license. License