Hi Maciej,
I'm surprised that the grid does this. It's very odd that it stretches the image bigger and even more odd that it does so ignoring the aspect ratio. You might want to Submit an incident to Infragistics Developer Support so they can check this out. It might be a bug.
The only way to alter this behavior is by using a CreationFilter to set the Scale property on the ImageUIElement that is displaying the image.
I too have this problem now.
When I used Infragistics 2008 Vol 1 the grid did NOT scale the images at all. Then I upgraded to Infragistics 2008 Vol 3 and now I have the same problem as the thread creator (images get scaled depending och row-height).
My question: is the grid supposed to behave like this or is this a bug?
http://forums.infragistics.com/forums/p/15294/68872.aspx#68872hi i am looking for what u have done in ur grid there is an icon and data in it from the database
could u be kind enough to share the code i have also tried using the value list but it is not
displaying the data which is my requirement, i am already using a dataset the value and datatype in that column is money in sql. plz helkp me if there is property of the grid that supports it
i am sorry but i have got Partly solution from ur previously answered forum and posted a New Forum
http://forums.infragistics.com/forums/t/25955.aspx
also i am using
Private
Sub UltraGrid1_InitializeRow( )
AddConditionalFormatting(e.Row)
end sub
Private Sub AddConditionalFormatting(ByRef RowName As UltraGridRow)
For Each MyCell As UltraGridCell In RowName.Cells
If IsNumeric(MyCell.Column.Key) Or MyCell.Column.Key = "VstFee" Then
If (Not MyCell.Value Is DBNull.Value) Then If MyCell.Value = 0 Then
MyCell.Row.Band.Columns("vstFee").CellAppearance.Image = ImgLst.Images(0)
ElseIf MyCell.Value <= 50 Then
MyCell.Row.Band.Columns(
"vstFee").CellAppearance.Image = ImgLst.Images(1)
ElseIf MyCell.Value > 50 Then
MyCell.Band.Columns("vstFee").CellAppearance.Image = ImgLst.Images(2)
End If
Else
MyCell.Appearance.BackColor = Color.LightGoldenrodYellow
EndIf
Next
End Sub
sushantkajrolkar said: http://forums.infragistics.com/forums/p/15294/68872.aspx#68872hi i am looking for what u have done in ur grid there is an icon and data in it from the database could u be kind enough to share the code i have also tried using the value list but it is not displaying the data which is my requirement, i am already using a dataset the value and datatype in that column is money in sql. plz helkp me if there is property of the grid that supports it
I'm not sure I understand your question. If you want to put an image into a cell in the grid along with the text, then you would typically do this in the InitializeRow event and set the cell.Appearance.Image property.