Alternate Row Color for entire grid

  • Thread starter Thread starter B.
  • Start date Start date
B

B.

I am able to set the alternate row color using
AlternatingRowsDefaultCellStyle. however, if my grid is not fully
filled, the alternate row color will not apply for blank rows. How can
I fill the blank rows with alternate color as well. Thanks.
 
Hi,

B. said:
I am able to set the alternate row color using
AlternatingRowsDefaultCellStyle. however, if my grid is not fully
filled, the alternate row color will not apply for blank rows. How can
I fill the blank rows with alternate color as well. Thanks.

You're not mentioning what grid control you're talking about, so obviously
it's hard to give a correct answer. But in any case I would suspect that
unless there's a specific option for the behaviour you want, it's just the
way they implemented it. Most grid controls that I have seen have some form
of custom drawing functionality and you should be able to draw the
alternating colors in the free space yourself. How easy that is would
depend on the quality of the extensibility API provided.


Oliver Sturm
 

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

Back
Top