|
-
Sep 10th, 2013, 06:23 AM
#1
Learning DataGridView Checkbox columns with VS2012 solution
The following MSDN article I wrote has a VS2012 solution with a handful of project showing how to work with DataGridView CheckBox column data mostly from a DataGridView's data source a DataTable but does have one with no data source. The objective here is to provide a starting point for VB.NET developers to learn how to work with CheckBox column data at a simple level along with more complex solutions ranging from only allowing one row with one checkbox column to be checked to working horizontally with two and three checkboxs per-row but alone allow one checked per-row. Please note that there are meaningful comments within the code that if you decide to adapt something that you should read the comments. A good example, in one of the projects code was needed in KeyUp event of the DataGridView to handle using the spacebar to toggle the current checkbox but only because of how I wrote code in a DataTable event where if that event was not there the KeyUp event code would not be required.
- None of the projects started in VS2012, some date back to VS2005 and brought forward with the current IDE syntax.
- Best way to learn is first build/run the project then read the article to get an idea of how I did what was demo'd
MSDN article with VS2012 solution
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|