Use the event wizard to create the code for the InitializeRow event
for your ultragrid
inside the code block you can use something like the code I found on
the infragistics site:
If Args.Row.Band.Index = 0 Then
If Args.Row.Cells("OpenOrder").Value = True Then
Args.Row.Appearance.BackColor = System.Drawing.Color.Blue
Args.Row.Appearance.BackColor2 = System.Drawing.Color.Red
Args.Row.Appearance.BackGradientStyle _
= Infragistics.Win.GradientStyle.Horizontal
Args.Row.Appearance.ForeColor = System.Drawing.Color.White
End If
End If
Does some pretty wild stuff :o)
Play around with colors and gradient styles to suit your needs
HTH
--- In vantage@yahoogroups.com, Muhammad Sarfaraz
<advancegrindingvista@...> wrote:
select different back color.
______________
for your ultragrid
inside the code block you can use something like the code I found on
the infragistics site:
If Args.Row.Band.Index = 0 Then
If Args.Row.Cells("OpenOrder").Value = True Then
Args.Row.Appearance.BackColor = System.Drawing.Color.Blue
Args.Row.Appearance.BackColor2 = System.Drawing.Color.Red
Args.Row.Appearance.BackGradientStyle _
= Infragistics.Win.GradientStyle.Horizontal
Args.Row.Appearance.ForeColor = System.Drawing.Color.White
End If
End If
Does some pretty wild stuff :o)
Play around with colors and gradient styles to suit your needs
HTH
--- In vantage@yahoogroups.com, Muhammad Sarfaraz
<advancegrindingvista@...> wrote:
>in EpiUltragrid based on different identifier.
> Hi
> Need to know is there a way to change or have different back color
> eg.where I have 4- 5 different identifiers based on that i have to
> Sales order grid
> need to see
> all open sales order rows in Green Back color
> all Closed sales order in blue back color.
> etc
> I need to apply this example in differen areas of the system
select different back color.
> I tried to do same functionality through Row Rule , but it onlyallow me to have Error in (Red) and Warningin in (Yellow) back color.
> any reply will be really appreciated.______________________________________________________________________
> Thanks
> Muhammad Sarfaraz
> IT Project Manager
> (Vista 8.03.305i - Progress )Â
> Advance Grinding Service, Inc.
> Tel: (708) 442 7100 x 313
>
>
>
______________
> Be a better friend, newshound, andhttp://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ
> know-it-all with Yahoo! Mobile. Try it now.
>
> [Non-text portions of this message have been removed]
>