tagged [datagridview]
Make a specific column only accept numeric value in datagridview in Keypress event
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 a...
- Modified
- 28 Sep at 18:31
Apply Formula Cell to a DataGridview
Apply Formula Cell to a DataGridview I want to add formula cell in a `DataGridView`. Is there any custom `DataGridView` to do this? Example:
- Modified
- 23 Aug at 09:13
how to insert value into DataGridView Cell?
how to insert value into DataGridView Cell? I have `DataGridView` (that hold any `DataBase`) I want to insert any value into any Cell (and that this value will save on DataBase) How to do it (in C#) T...
- Modified
- 27 Jul at 06:48
DataGridView Row Height Autosize
DataGridView Row Height Autosize I am using a `DataGridView` in C# .NET 3.5 and I want the height of all rows set to `AutoSize`. I set `WrapMode = true` but am still not getting the height to autosize...
- Modified
- 4 Oct at 21:35
How to deselect all selected rows in a DataGridView control?
How to deselect all selected rows in a DataGridView control? I'd like to deselect all selected rows in a `DataGridView` control when the user clicks on a blank (non-row) part of the control. How can I...
- Modified
- 6 Nov at 06:36
How to find out which DataGridView rows are currently onscreen?
How to find out which DataGridView rows are currently onscreen? In my C# (2010) application I have a DataGridView in Virtual Mode which holds several thousand rows. Is it possible to find out which ce...
- Modified
- 18 May at 13:5
Hide the extra row at the bottom in a DataGridview in a Winform Application
Hide the extra row at the bottom in a DataGridview in a Winform Application I have binded a datagridview to a datatable. But the gridview displays an extra empty row at the bottom ? How should I hide ...
- Modified
- 18 Nov at 07:11
How can I check if a DataGridView contains column "x" and column "x" is visible?
How can I check if a DataGridView contains column "x" and column "x" is visible? How can I check if a `DataGridView` contains column "x" and column "x" is visible? All I have so far is below. Thanks
- Modified
- 27 Aug at 19:13
How do I get a DataRow from a row in a DataGridView
How do I get a DataRow from a row in a DataGridView I'm using a databound Windows Forms `DataGridView`. how do I go from a user selected row in the `DataGridView` to the `DataRow` of the `DataTable` t...
- Modified
- 25 Mar at 21:21
Changing the row height of a DataGridView
Changing the row height of a DataGridView How can I change the row height of a DataGridView? I set the value for the property but height doesn't change. Any other property has to be checked before set...
- Modified
- 4 Sep at 01:4
c# very slow populating the datagridview
c# very slow populating the datagridview I'am populating a datagridview from a datatable. While populating the columns and rows, I also format it at the same time, this cause the datagridview to load ...
- Modified
- 5 Nov at 08:46
C# DataGridView Check if empty
C# DataGridView Check if empty I have a datagridview which gets filled with data returned from a linq query. If the query returns no results I want to display a messagebox. Is there a way of checking ...
- Modified
- 29 Jul at 09:0
How to disable the ability to select in a DataGridView?
How to disable the ability to select in a DataGridView? I want to use my `DataGridView` only to show things, and I want the user not to be able to select any row, field or anything from the `DataGridV...
- Modified
- 17 Jun at 05:38
DataGridView first column,first row, is selected on Load, I don't want this
DataGridView first column,first row, is selected on Load, I don't want this So basically the very first column in the first row is always selected, I can't figure out a way to have it so the gridview ...
- Modified
- 8 Oct at 16:7
Datagridview full row selection but get single cell value
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 cell no matter what cell in the row was clicked...
- Modified
- 5 Jun at 13:57
How can I refresh c# dataGridView after update ?
How can I refresh c# dataGridView after update ? I have a dataGridView when I click on any row a form is opened to update the row data, but after ending updates the updating form is closed but the dat...
- Modified
- 10 Aug at 11:5
how to sort a datagridview by 2 columns
how to sort a datagridview by 2 columns How do I sort a DataGridView by two columns (ascending)? I have two columns: `day` and `status`. If I need to sort by one column, I do: But for two?
- Modified
- 17 Jan at 08:24
How to handle click event in Button Column in 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 column in that. I want to k...
- Modified
- 6 Jan at 09:21
DatagridView: Remove unused space?
DatagridView: Remove unused space? I was wondering whether it is possible to remove the unused space ( the gray space ) of the `DataGridView` control in C#. I have to make the `DataGridView` display t...
- Modified
- 4 Aug at 23:38
What's better to use: a DataGrid or ListView for displaying large amounts of data?
What's better to use: a DataGrid or ListView for displaying large amounts of data? I want to display >50000 rows in a table. Which is the best control to use: a DataGrid or a ListView (in details view...
- Modified
- 22 May at 18:3
C# DataGridViewButtonCell set buttons text
C# DataGridViewButtonCell set buttons text I need to add my `DataGridViewButtonCell` to `Column`, and I need to name each other with different names. Can anyone help me, please? i do that stuff and it...
- Modified
- 3 Oct at 13:12
How to change row color in 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 red when the value of columncell 7 is less than the value ...
- Modified
- 2 Jul at 14:36
Populating a DataGridView with Text and ProgressBars
Populating a DataGridView with Text and ProgressBars I am creating a multi-threaded application in which each thread will appear as a row in my `DataGridView`. I want a `ProgressBar` in each row indic...
- Modified
- 10 Jan at 12:46
How could I Drag and Drop DataGridView Rows under each other?
How could I Drag and Drop DataGridView Rows under each other? I've `DataGridView` that bound a `List` and i sort it by "`Priority`" property in "`myClass`". So I want to drag an "`DataGridViewRow`" to...
- Modified
- 11 Jan at 11:51
Scroll to bottom of C# DataGridView
Scroll to bottom of C# DataGridView I'm trying to scroll to bottom of a DataGridView in a C# WinForm. This code works with a TextBox: ... but I don't know how to do it with a DataGridView. Any help, p...
- Modified
- 1 Apr at 23:27