Hi,
If a column has a value in it I want to show a graphic, if it's empty I want to show nothing. Any ideas?
Thank you,
Steve Ellis
Hi Mike,
Thank you. Worked great. Enjoy the weekend -Steve
Hi Steve,
There are a number of ways to do this, and which approach you take depends on exactly what you need.
If you want different images (or no image) based on the Value, then I would recommend using a ValueList.
If the field has to be editable by the user, then you will probably want to use a custom check editor.
If you just want either an image or no image, and the image is always the same, then I'd use an unbound column. What you do is handle the InitializeLayout event of the grid and hide your "real" column of data. Then you add an unbound column to the band and set it's DataType to Image or Bitmap.
Then you handle the InitializeRow event of the grid. In this event, you examine the value of the "real" column. If it's empty, you set the value of the unbound column cell to null. If not, you set it to the image you want.
I would like a general example on how to display a image (only) when there is text present in a specific cell by row. If the cell does not contain any text then the cell show display nothing.
To answer your question, an image instead of the value. And no image l when there is no value.
Best, Steve
Do you mean you want to show an image instead of the value? Or an image along with the value?