Questions tagged [datagridviewimagecolumn]

42 questions
1
vote
1 answer

How to get image value of Datagridview Image Cell

I have an datagridview with play image ImageColumn and if user click play icon then CellClick Event set "Stop" image from Resources. Private Sub dg1_CellClick(sender As Object, e As DataGridViewCellEventArgs) Handles dg1.CellClick …
user3877422
  • 3,687
  • 3
  • 13
  • 6
0
votes
0 answers

How to display a picture inside a DataGridView on Powershell ISE

I've been struggling to display either OK.png / NOK.png on a specific column by testing if the path of the actual PV.pdf exists , $dataGrid = New-Object System.Windows.Forms.DataGridView $dataGrid.Width = 503 $dataGrid.Height =…
0
votes
1 answer

Images not loading in DataGridView C# - Visual Studio 2022

all. I know this issue is not new here. I found several similar ones (here, here, here and here) during my research, but I still could not make it work on my "to do list" like program. Since it is a short term planning task manager, I chose to save…
0
votes
0 answers

Display image from DataGridviewImageColumn in combobox

I ahve a dgv inside a winform and i want to display an image from the dgv image column inside a combo box drop down list. i can add other values within the dgv to the combobox: var cbString =…
user16134231
0
votes
1 answer

selection in datagridview comboboxcolumn display image in another cell c# windows form

I have load my combobox with the image id and image name from the sql database. I want it if we select any image name in the combobox, the image with that image name will be displayed at another cell. Below code is how i load my datagridview…
0
votes
1 answer

transfer selected datagridview row with image to another datagridview

I am trying to make a cart and when user select row in product table, enter quantity and click "add to cart" the row will go to the cart table. i can do it but the image column shows the system.byte insread of the image. also when i select new…
user10860402
  • 912
  • 1
  • 10
  • 34
0
votes
1 answer

DataGridViewImageColumn background is black

I have a table, where one of the columns is of the image type. When using the "ImageLayout" attribute as "Stretch" the background is black. How can I change it to white? I'm using the "SystemIcons" icon set converted to a bipmap. private Bitmap…
0
votes
1 answer

Showing the same image repeatedly in a DataGridView without memory over-use

I think I'm doing something very stupid, but can't find an alternative! I've got a list of files that my form is going to process, and am using a datagridview to show them all and my progress through the list. I've got a "waiting" "processing" and…
Martin KS
  • 481
  • 7
  • 26
0
votes
1 answer

How to clear image in DataGridView image column in C#

I tried clear image in DataGridView image column. I don't know why value in cells are not update. This code when I get image It's show success don't have any problem: private void dataGridView1_CellValueChanged(object sender,…
Meawmill
  • 67
  • 1
  • 13
0
votes
1 answer

Changing image value in DataGridViewImageColumn does not remove previous image

The problem: When changing what image shows up in the cell of a DataGridViewImageColumn, the previous image is still there behind the new image: (Note the red error behind the green checkmark) What I have: The image is showing status on…
JSWulf
  • 129
  • 1
  • 2
  • 12
0
votes
1 answer

DataGridViewImageColumn doesn't change value

I'm trying to change the image of a cell inside DataGridViewImageColumn when the value of another cell is OK or NO. I've created the column with this code Dim NewImageProd As New DataGridViewImageColumn NewImageProd.Image =…
Stefano
  • 3
  • 5
0
votes
1 answer

How to use DataGridViewImageColumn to display images using zoom and also keeping the aspect ratio?

My code Building the column IconColumn = new DataGridViewImageColumn() { Name = "Icon", HeaderText = "Icon", SortMode = DataGridViewColumnSortMode.NotSortable, Width = 50, ImageLayout = DataGridViewImageCellLayout.Stretch, …
silviubogan
  • 3,343
  • 3
  • 31
  • 57
0
votes
1 answer

C# DataGridView ImageColumn

DataGridView Image Column is getting null when change the visibility of User Control that includes the dataGridView. Codes are below; public partial class ReadingOrderListControl : UserControl { private Image Pending { get { return…
Aykut Demirci
  • 168
  • 4
  • 19
0
votes
1 answer

Cannot add images to new image column after databinding DataGridView in C#

I cannot set the image of an image column cell after I databind the DataGridView. If I add the image column and the image without databinding the dgv, everything works. Here is my code: public void LoadDgvDocuments() { var select = "SELECT…
Ahmed Faizan
  • 446
  • 5
  • 12
  • 22
0
votes
0 answers

DataGridView Default Error Dialog. System.FormatExeption: Formated value of the cell has a wrong type

I've got an Addin with two(2) DataGridViews(DGV1 and DGV2). DGV1 is horizontally based representing data from CAD files within a certain folder. In DGV1, each file has it's own row with different columns to show data, nothing special, just what…