Top "Datagridview" questions

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

Datagridview: How to set a cell in editing mode?

I need to programmatically set a cell in editing mode. I know that setting that cell as CurrentCell and then …

c# winforms .net-3.5 datagridview
Using a list as a data source for DataGridView

I've extracted the setting names and their respective values out of a configuration file into an ordered dictionary. The dictionary …

c# datagridview datasource icollection ordereddictionary
How to format DateTime columns in DataGridView?

I'm using a DataGridView with object data binding to display information about logging entities in a system, retrieved via SOAP …

c# winforms data-binding datetime datagridview
How to export dataGridView data Instantly to Excel on button click?

I have 10k rows and 15 column in my data grid view. I want to export this data to an excel …

c# datagridview copy export-to-excel export-to-csv
Populate a datagridview with sql query results

I'm trying to present query results, but I keep getting a blank data grid. It's like the data itself is …

c# winforms datagridview
Sort dataGridView columns in C# ? (Windows Form)

I have a datagridview that i bind from an sql table, in that dv i have those attributes: Id, Name …

c# winforms datagridview sorting grid
DataGridView - Focus a specific cell

How to set focus on any specified cell in DataGridView? I was expecting a simple way like Focus(rowindex,columnindex) …

c# datagridview
Adding Text to DataGridView Row Header

Does C# allow you to add a String to a RowHeader in a DataGridView? If so, how is it accomplished? …

c# .net winforms datagridview
How to get DataGridView cell value in messagebox?

How can I get DataGridView cell value to be written in the MessageBox in C#?

c# datagridview messagebox
How to enable DataGridView sorting when user clicks on the column header?

I have a datagridview on my form and I populate it with this: dataGridView1.DataSource = students.Select(s => new { …

c# winforms sorting datagridview