datagrid custom binding expression

G

Guest

hey all,

can i use iif in my datagrid custom binding expression?

i'm trying to set my DataBindings for my textbox.backcolor and if the value
is 0 it should be "lightgrey" and if not it should be "white".

please advise.

thanks,
rodchar
 
P

Patrick.O.Ige

You can write a function for it if you don't want to use IIF
And then
Add this to wherever you want to use it <%#
WhichColor(Container.DataItem("yourvalue")) %>
Patrick
 
G

Guest

Cool, one thing though I can get the function to work when it's server-side
is there a way to make it call a javascript function?

thanks,
rodchar
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,995
Messages
2,570,236
Members
46,825
Latest member
VernonQuy6

Latest Threads

Top