C1 Community
ComponentOne Community is a free source for developers and help authors to collaborate and communicate.

Browse Site by Tags

Showing related tags and posts across the entire site.
  • Conditional row coloring

    Hi, Is there a way to color the rows based on certain values in some of the columns. I am in the process of developing a grid in which we need to traffic light the rows based on values in certain key columns. I am not using autogeneratd columns and am binding the grid from a data table. I am afraid that...
    Posted to WebGrid for ASP.NET by saketh on Wed, Feb 27 2008
    Filed under: colors, Rows, conditional
  • Re: Different text colors

    To use different text colors just assign the html to the text of the cell. C1WebGrid1.Items(0).Cells(0).Text = " <font color=red>" & C1WebGrid1.Items(0).Cells(0).Text & "</font>" Or you can use the ItemDatabound event to color code values conditionally setting...
    Posted to WebGrid for ASP.NET by C1_GregL on Mon, Jan 7 2008
    Filed under: C1Webgrid, colors
Page 1 of 1 (20 items)
Contact ComponentOne: 1.800.858.2739 ©1987-2010 ComponentOne LLC All Rights Reserved.