Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 376
  • Last Modified:

Flex AdvancedDatagrid data display

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.
1 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


Featured Post

Cyber Threats to Small Businesses (Part 2)

The evolving cybersecurity landscape presents SMBs with a host of new threats to their clients, their data, and their bottom line. In part 2 of this blog series, learn three quick processes Webroot’s CISO, Gary Hayslip, recommends to help small businesses beat modern threats.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now