Top "Datagridview" questions

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

Import Excel to Datagridview

I'm using this code to open an excel file and save it in a DataGridView: string name = "Items"; string constr = "…

c# excel datagridview oledb
Refresh DataGridView when updating data source

What is the best way to refresh a DataGridView when you update an underlying data source? I'm updating the datasource …

c# .net winforms datagridview
c# datagridview doubleclick on row with FullRowSelect

I have a datagridview in my C# application and the user should only be able to click on full rows. …

c# events datagridview double-click
Button in a column, getting the row from which it came on the Click event handler

I've set the itemsource of my WPF Datagrid to a List of Objects returned from my DAL. I've also added …

c# wpf xaml datagrid datagridview
How can I bold the fonts of a specific row or cell in an Excel worksheet with C#?

I am exporting data from a List<> to excel. I want to make some specific rows and cells …

c# windows excel datagridview
How do I make the DataGridView show the selected row?

I need to force the DataGridView to show the selected row. In short, I have a textbox that changes the …

c# winforms datagridview scroll selected
How do I select a complete dataGridView Row when the user clicks a cell of that row?

I have a dataGridView and I need that when the user clicks on any cell the whole row that contains …

c# .net winforms datagridview
How to find column name with column index in DataGridView?

I want to find column name in DataGridView. I have column index. How can I find it. dGVTransGrid.CurrentCell.ColumnIndex: …

c# datagridview
Make a specific column only accept numeric value in datagridview in Keypress event

I need to make datagridview that only accept the numeric value for specific column only in keypress event. Is there …

c# datagridview keypress
DataGridView set column cell Combobox

I have tables like that in Datagridview: Name Money ------------- Hi 100 //here Combobox with member {10,30,80,100} to choose Ki 30 //here Combobox …

c# datagridview datagridviewcombobox