Q
Quick
I have a DataGridView that has a DataGridViewImageColumn.
The image that renders in the column needs to only be visible when a
certain value is present within another column in the DataGridView.
I can't seem to figure out what it would take to make this happen.
Just about every property I can find to use on the individual cell that
deals with display is Read Only.
Here's what I've got so far:
foreach (DataGridViewRow row in dgEmployees.Rows) {
if (row.Cells[15].Value.ToString().Trim() == "") {
row.Cells[3]. ((remove/hide the image in this cell of the
current row))
}
}
I can't imagine this is an uncommon thing to do, so I'm figuring I'm
just overlooking something simple or I'm going about it the wrong way.
Any ideas would be greatly appreciated.
-Quick
The image that renders in the column needs to only be visible when a
certain value is present within another column in the DataGridView.
I can't seem to figure out what it would take to make this happen.
Just about every property I can find to use on the individual cell that
deals with display is Read Only.
Here's what I've got so far:
foreach (DataGridViewRow row in dgEmployees.Rows) {
if (row.Cells[15].Value.ToString().Trim() == "") {
row.Cells[3]. ((remove/hide the image in this cell of the
current row))
}
}
I can't imagine this is an uncommon thing to do, so I'm figuring I'm
just overlooking something simple or I'm going about it the wrong way.
Any ideas would be greatly appreciated.
-Quick