Flex AdvancedDatagrid  data display

Posted on 2009-02-20
Last Modified: 2012-05-06
I  have an AdvancedDatagrid,populating data from dataprovider (ArrayCollection).

Dataprovider  has values null in case of missing column values. I dont want this null to be displayed as a column value in DataGrid. How to remove the diplay of "null" in a column.
Question by:VKN9876
    1 Comment
    LVL 19

    Accepted Solution

    Use a label function on the dataGrid column.:
    private function labelIsNull(item:Object, column:DataGridColumn):String {
       if(item[column.dataField] == null){
           return "";
          return item[column.dataField];

    Open in new window


    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Maximize Your Threat Intelligence Reporting

    Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

    Suggested Solutions

    First things first - Preparation We need all the part for this install and it's much nicer to have them all on hand when you need them so here's what's required. Download Eclipse 3.5 32 bit (I like the Classic flavour) from here. (http://www.e…
    ADCs have gained traction within the last decade, largely due to increased demand for legacy load balancing appliances to handle more advanced application delivery requirements and improve application performance.
    To add imagery to an HTML email signature, you have two options available to you. You can either add a logo/image by embedding it directly into the signature or hosting it externally and linking to it. The vast majority of email clients display l…
    how to add IIS SMTP to handle application/Scanner relays into office 365.

    758 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

    7 Experts available now in Live!

    Get 1:1 Help Now