Velocity Reviews

Velocity Reviews (http://www.velocityreviews.com/forums/index.php)
-   ASP .Net Building Controls (http://www.velocityreviews.com/forums/f59-asp-net-building-controls.html)
-   -   Can styles be binded to a datasource? (http://www.velocityreviews.com/forums/t758167-can-styles-be-binded-to-a-datasource.html)

dominic@vitrasoft.com 02-01-2006 12:01 AM

Can styles be binded to a datasource?
 
I am building a custom control that renders an HTML table with
accounting info in it. Very similar to a datagrid. I want to give
developers IDE properties for styles, say a RowStyle. Say a developer
wants the RowStyle-BackColor bound to the datasource so that if the row
has a negative value in the Balance column, then the entire BackColor
of the row will be red. I just can't seem to figure out if there is a
way to get this to work. A template solution is a hack because I'll
lose the style properties in the IDE and anything other than style
elements in such a template are meaningless. I'm at a loss. Any help
is appreciated.

Thanks, Dominic.



All times are GMT. The time now is 11:42 PM.

Powered by vBulletin®. Copyright ©2000 - 2013, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.