Top "Datagridview" questions

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

C# DataGridViewCheckBoxColumn Hide/Gray-Out

I have a DataGridView with several columns and several rows of data. One of the columns is a DataGridViewCheckBoxColumn and (…

c# datagridview datagridviewcheckboxcell
how to get the editing control of datagridview/datagridviewcell?

I have a datagridviewcell with textbox as the control hosted by it. Now how do I get the type of …

.net winforms datagridview datagridviewtextboxcell
c# datagridview column autosizemode

I wish that by default the columns uses the AutoSizeMode = DisplayedCells; but I wish also the possibility to resize the …

c# winforms datagridview autoresize datagridtemplatecolumn
How to evade reentrant call to setCurrentCellAddressCore?

I have a function that is called from cell_endedit. It moves a dataGridViewRow inside a dataGridView: private void moveRowTo(…

c# datagridview invalidoperationexception
How to Bind DataGridView with SqlDataReader

Can anyone help me in this Code Please. I am trying to bind data with datagridview. Query is returning values …

c# winforms datagridview sql-server-2008-express
DataGridView: Change Edit Control size while editing

in the DataGridView I want the cell size to expand according to the string length when I edit the cell. …

c# datagridview edit
Datagridview checkbox checked when clicking the cell

I handle my checkbox click event with the CurrentCellDirtyStateChanged. What I want to be able to do is handle the …

c# winforms checkbox datagridview checked
Datagridview, disable button/row

I have a datagridview on a form with some data. The 1st column contains button for deleting the row. How …

winforms button datagridview delete-row
.NET / WinForms - Clear a Sort on a DataGridView

What is the proper method to tell a DataGridView to stop sorting? I have a "screen" where I tell the …

.net winforms datagridview grid gridview-sorting
Adding ComboBox to Datagridview

I found a way to add a combobox to DataGridview (Winform) cell, but I have not found an event like …

c# winforms datagridview datagridviewcombobox rowdatabound