Data Grid

Posted on 2004-11-24
Last Modified: 2010-04-23
How can i customize the color of a row in the datagrid?
Question by:sarangkd
    LVL 7

    Accepted Solution

    The properties of the datagrid has a whole bunch of COLOR properties under the COLOR can specify alternating colors for the rows etc...
    LVL 1

    Assisted Solution

    Here you have alternating styles:
    BackColor="White" alternatingitemstyle-backcolor="#ffff99"
    just insert this into your datagrid opening tag and set your color. If you want it all one color, omit the "alternatingitemstyle-backcolor="..." part

    LVL 8

    Assisted Solution


    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    What Is Threat Intelligence?

    Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

    Article by: Kraeven
    Introduction Remote Share is a simple remote sharing tool, enabling you to see, add and remove remote or local shares. The application is written in VB.NET targeting the .NET framework 2.0. The source code and the compiled programs have been in…
    Microsoft Reports are based on a report definition, which is an XML file that describes data and layout for the report, with a different extension. You can create a client-side report definition language (*.rdlc) file with Visual Studio, and build g…
    Need more eyes on your posted question? Go ahead and follow the quick steps in this video to learn how to Request Attention to your question. *Log into your Experts Exchange account *Find the question you want to Request Attention for *Go to the e…
    This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor ( If you're looking for how to monitor bandwidth using netflow or packet s…

    779 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    15 Experts available now in Live!

    Get 1:1 Help Now