Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/karenpayneoregon/datagridview-combobox-cs

Code sample for working with a DataGridView Combobox columns
https://github.com/karenpayneoregon/datagridview-combobox-cs

csharp datagridview sql-server

Last synced: 2 days ago
JSON representation

Code sample for working with a DataGridView Combobox columns

Awesome Lists containing this project

README

        

# About

> Originally just for DataGridViewComboBox has now expanded

Simple code sample for DataGridViewComboBox and DataGridViewCheckBox feed from SQL-Server using DataTable containers

- To see how to get at the current row values see [Form1.CurrentValuesView](https://github.com/karenpayneoregon/datagridview-combobox-cs/blob/master/DataGridViewComboCS/Form1.cs#L107) method.
- See the [following](https://github.com/karenpayneoregon/datagridview-combobox-cs/blob/master/DataGridViewComboCS/Form1.cs#L141) to get checked and unchecked rows

![screen1](assets/dgvc.png)

# Instructions

- Open [databasescript.sql](https://github.com/karenpayneoregon/datagridview-combobox-cs/blob/master/DataGridViewComboCS/databasescript.sql) in SSMS (SQL-Server Management Studio)
- Adjust the path the database will be created
- Run the script
- Build the solution
- Run the project

# Requirements

:heavy_check_mark: SQL-Server 2012 or higher

:heavy_check_mark: Visual Studio 2017 or higher