Top "Datagridview" questions

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

How to add a new row to datagridview programmatically

if add row to DataTable DataRow row = datatable1.NewRow(); row["column2"]="column2"; row["column6"]="column6"; datatable1.Rows.Add(row); How …

c# winforms datagridview row
Index of Currently Selected Row in DataGridView

It's that simple. How do I get the index of the currently selected Row of a DataGridView? I don't want …

c# .net winforms datagridview
How to change row color in datagridview?

I would like to change the color of a particular row in my datagridview. The row should be changed to …

c# winforms datagridview background-color
How to delete a selected DataGridViewRow and update a connected database table?

I have a DataGridView control on a Windows Forms application (written with C#). What I need is: when a user …

c# winforms datagridview tableadapter
Filtering DataGridView without changing datasource

I'm developing user control in C# Visual Studio 2010 - a kind of "quick find" textbox for filtering datagridview. It should …

c# winforms visual-studio-2010 datagridview filter
Getting data from selected datagridview row and which event?

I have a DataGridView (Selectionmode: FullRowSelect) on a windows form along with some textboxes, so what i want to do …

c# winforms datagridview
How to handle click event in Button Column in Datagridview?

I am developing a windows application using C#. I am using DataGridView to display data. I have added a button …

c# .net winforms datagridview
VB.NET: Clear DataGridView

I've tried - DataGridView1.DataSource=Nothing and DataGridView1.DataSource=Nothing DataGridView1.Refresh() and DataGridView1.RefreshEdit() None of them works.. I've …

vb.net datagridview datasource datagridviewrow
How do you automatically resize columns in a DataGridView control AND allow the user to resize the columns on that same grid?

I am populating a DataGridView control on a Windows Form (C# 2.0 not WPF). My goal is to display a grid …

c# winforms datagridview
DataGridView - how to set column width?

I have a WinForms application with DataGridView control. My control has five columns (say "Name", "Address", "Phone" etc) I am …

.net winforms datagridview controls