Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
1612
How to prevent column Image stretching?
posted
HI

Is it possible to prevent stetch row.cell.apparance.image when working with multiline or merged rows?
See attached screenshot to see what I meant.

Thanks,
Maciej
Parents Reply
  • 420
    posted in reply to Kristoffer

    http://forums.infragistics.com/forums/p/15294/68872.aspx#68872
    hi 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

Children
  • 420
    posted in reply to Mike Saltzman

    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

     EndIf

     

     

     

     Next

     End Sub 

     

  • 469350
    Offline posted in reply to sushant

    sushantkajrolkar said:

    http://forums.infragistics.com/forums/p/15294/68872.aspx#68872
    hi 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.