Category "datagridview"

Hovering over a DataGridViewComboBoxColumn in a WinForms app in Windows 11 turns cell black (OK in Windows 10)

When we run our application on Windows 11 the DataGridView control seems to act differently. Hovering over a cell in a DataGridViewComboBoxColumn turns the cell

ERROR : Input String was not in a correct format when calculating multiple columns in DATAGRIDVIEW

I want to calculate the value of 3 cells in DATAGRIDVIEW the calculation : SDI = ((result - mean ) / SD) I tried the following code : private void dgvResult_Cel

Fill the DataSource of a DataGridView with existing Columns

Is there a way to fill the DataSource of a DataGridView using the existing Columns? I'm trying to set a DataSource to my DataGridView; every time I set my DataS

How to set color for checkbox present in datagridview?

I have a datagridview in windows form. It looks like this. In this, have one Checkbox column, two textbox column. My requirement is need to set readonly true a

Databind Object to Winforms DatagridView with ComboBox

Currently I'm trying to databind object properties to a datagridview. The thing is that the datagridview should have a combobox column, where the user has to ch

How to exclusively set the value of a DataGridViewCheckBoxCell?

I have a List<Car> objects that have a bool property named Marked. I want to check / uncheck the Cell corresponding to this property, in a way that only o

Export textbox and datagridview data to a WORD document. All to the same document

I got a Windows Forms application using C# and struggling now for over a week trying to export some textboxes and a datagridview data to a word document. I'v ma

Datagridview Error After Rowfilter -> Data Update/Add and Fill Process

I have a datagridview which filled by SQL table. When I search a value with a textbox in the data and update/insert the some values and use fill function again

DataGridviewLinkCell - Change the fore color of highlighted cell

I have a datagridview with 1 column being of type DataGridviewLinkColumn, the link text is in blue color and when the focus is on a cell the background color of

Maintain Datagridview Checkbox State while using filter

I have a datagridview which I populated thru mysql query Using command As New MySqlCommand("SELECT p_code as 'Prodcut Code', p_name as 'Product Name', filter "

DataGridView with SuggestAppend comboBox columns and dynamic Cell assignment

I have been doing some research and could not find an answer for this, probably I'm not asking the right question or what I'm attempting might not be possible.

Enabling and Disabling DataGridView button cell

I have made a DataGridView in a Windows Form with the Name serverListand then added a selection of columns then at the end of each row I have added a button cel

Anyway to read and write .png file and link .txt file named the same as .png file?

Its made in Windows Forms at the most, in a button public Photo(string filename) { bitmap = new Bitmap(filename); /*shows the pictu

Wpf navigation from one page to another and data grid loading large data

This is the desktop application I am creating in WPF. I am using Hamburger menu library. Desktop application Wpf I am struggling with this for last one week.

Hiding particular datagridview cell in c#

I have a datagridview in windows form. Datagridview looks like below: In this, have one Checkbox column, two textbox column. My requirement is need to hide che

How to soft delete a selected row in a DataGrid View using a button

So I have a DataGridView called MyMovieDataDrid which is connected to a sql server, and I already have my IsDeleted property, and a delete repository which is s

DataGridView ScrollBars are not working after Thread

I'm setting a dataTable as data source of a datagridview. I do this on a new thread (I don't want my UI blocked while is loading data). My dilema is: the scroll

Set value in a datagridview cell programmatically

I'm new in C# and I have a problem with setting the value of a cell programmatically. I've created a column and added it to the DataGridView: DataGridViewTe

How to get the rowindex by searching text from datagridview on vbnet

I am stuck on a simple thing. My app has a datagridview with 3 columns. One columnshave the name "Sites" and I have added the rows to it as in: sites1, site2, e

How to move the cursor in a DataGridView c#

How to move the cursor in a DataGridView? No. .Selected = true; as this puts the cell in blue by default! I want the cursor to move When I click on "Add" button