-----------------------------------------------------------
New Message on BDOTNET
-----------------------------------------------------------
From: Manivannanvp
Message 2 in Discussion
Hi,
If you want to change the particular cell in the row, then
put the below code inside a Item databound event
Assume cell 1 has the value to validate for color changing,
and Cell 3 has minimum value and Cell 4 has the maximum
value
If cint(e.item.cells(3).Text)
>= cint(e.item.cells(1).Text) and cint(e.item.cells(1).Text) <=
cint(e.item.cells(4).Text) then
'To change Backcolor of a
particular column
e.item.cells(2).BackColor =
Color.Blue
'OR
'To change Backcolor of
the particular row
e.item.BackColor =
Color.Blue
end if
rgds,
mani.v
From: [email protected]
[mailto:[EMAIL PROTECTED] On Behalf Of
Aspnetstarter1
Sent: Wednesday, September 21, 2005 12:29
PM
To: BDOTNET
Subject: Urgent ! changing the datagrid's row
color at run time in VB.NET - Winforms
New Message on BDOTNET
Urgent !
changing the datagrid's row color at run time in VB.NET -
Winforms
Reply
Reply to Sender Recommend
Message 1 in Discussion
From: Aspnetstarter1
Hi
I have data grid with 5 columns, of which 2 colums will be
Minimum and maximum values.
User will enter a value in a column which needs to be
validated against Max and Min values and if it's not in that
range, need to change that row's color at run time.
Can any one help me out.
regards
View other groups in this
category.
-----------------------------------------------------------
To stop getting this e-mail, or change how often it arrives, go to your E-mail
Settings.
http://groups.msn.com/bdotnet/_emailsettings.msnw
Need help? If you've forgotten your password, please go to Passport Member
Services.
http://groups.msn.com/_passportredir.msnw?ppmprop=help
For other questions or feedback, go to our Contact Us page.
http://groups.msn.com/contact
If you do not want to receive future e-mail from this MSN group, or if you
received this message by mistake, please click the "Remove" link below. On the
pre-addressed e-mail message that opens, simply click "Send". Your e-mail
address will be deleted from this group's mailing list.
mailto:[EMAIL PROTECTED]