Ed Leafe wrote:
> On Sep 6, 2008, at 1:52 AM, baofeng wang wrote:
> 
>> i study use dabo recently,dGrid is better at database,but i cann't  
>> set cell
>> background or cell text color?can you tell me how to do it?thanks very
>> much!!
> 
> 
>       If you want to do this for an entire column, just set col.BackColor  
> or col.ForeColor.
> 
>       If you want to do this on a cell-by-cell basis for a column, I  
> generally create a subclass of a renderer class, but I know that some  
> work has been done recently on cell-by-cell dynamic properties. I  
> don't know how well they are working or how exactly to use them;  
> perhaps Paul or Nate might explain these.

You can set col.DynamicBackColor or col.DynamicForeColor to a function 
that returns the color to use, based on the row, col of the given cell.

Let me know if you need more to go on than that.

Paul


_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-dev
Searchable Archives: http://leafe.com/archives/search/dabo-dev
This message: http://leafe.com/archives/byMID/[EMAIL PROTECTED]

Reply via email to