Top "Datagridview" questions

DataGridView is a Windows Forms control used to display and edit tabular data.

Datagridview full row selection but get single cell value

I have a datagridview that is a full row select. How would I grab the data from only a certain …

c# winforms datagridview
Binding List<T> to DataGridView in WinForm

I have a class class Person{ public string Name {get; set;} public string Surname {get; set;} } and a List<…

c# list datagridview binding grid
right click context menu for datagridview

I have a datagridview in a .NET winform app. I would like to rightclick on a row and have a …

c# winforms datagridview contextmenu right-click
How to programmatically set cell value in DataGridView?

I have a DataGridView. Some of the cells receive their data from a serial port: I want to shove the …

c# winforms datagridview
Check/Uncheck a checkbox on datagridview

Can someone help me why it doesn't work? I have a checkbox and if I click on it, this should …

c# winforms datagridview datagridviewcheckboxcell
Programmatically add new column to DataGridView

I have a DataGridView bound to a DataTable. The DataTable is populated from a database query. The table contains a …

c# winforms datagridview
Find a row in dataGridView based on column and value

I have a dataGridView that has 3 columns: SystemId, FirstName, LastName that is bound using database information. I would like to …

c# winforms datagridview
How to add new DataRow into DataTable?

I have a DataGridView binded to a DataTable (DataTable binded to database). I need to add a DataRow to the …

c# datagridview datatable datarow
DataGridView AutoFit and Fill

I have 3 columns in my DataGridView. What I am trying to do is have the first 2 columns auto fit to …

c# winforms datagridview
Selecting a row in DataGridView programmatically

How can I select a particular range of rows in a DataGridView programmatically at runtime?

c# .net winforms datagridview