Skip to content

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

License

Notifications You must be signed in to change notification settings

mikemajesty/cooldatagridview

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

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

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages