Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6731423
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T10:31:37+00:00 2026-05-26T10:31:37+00:00

I have an editable datagrid with a dataprovider which is basically Numbers. Is it

  • 0

I have an editable datagrid with a dataprovider which is basically Numbers. Is it possible to delete a value? When I do it it puts a 0 in that cell but I really need an empty value, like a Null or a NaN whose are going to be cleaned later with a labelFunction. BTW I also need the cells to keep the 0 if needed to. Thank you in advance.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T10:31:37+00:00Added an answer on May 26, 2026 at 10:31 am

    Assign NaN to the value, and create a custom item renderer for your DataGrid:

    <?xml version="1.0" encoding="utf-8"?>
    <s:GridItemRenderer xmlns:fx="http://ns.adobe.com/mxml/2009"
                        xmlns:s="library://ns.adobe.com/flex/spark"
                        xmlns:mx="library://ns.adobe.com/flex/mx"
                        clipAndEnableScrolling="true">
    
        <fx:Script>
            <![CDATA[
                override public function prepare(hasBeenRecycled:Boolean):void
                {
                    if (isNaN(data[column.dataField]))
                        lblData.text = "";
                    else
                        lblData.text = Number(data[column.dataField]).toFixed(2);
                }
            ]]>
        </fx:Script>
    
        <s:Label id="lblData"
                 top="9"
                 left="7" />
    
    </s:GridItemRenderer>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

i have an editable DataGrid, something like: <mx:Datagrid editable=true dataProvider={arrayListPreferences} id=preferencesGrid> <mx:columns> <mx:DataGridColumn header=col1
I have a WPF form that contains a DataGrid. This DataGrid is editable. One
I have a WPF datagrid with an editable column that happens to be a
I have this datagrid: <mx:DataGrid id=dgCompetenteN includeIn=Test left=10 right=472 top=69 bottom=149 dataProvider={colCompetente} editable=false> <mx:columns>
I have an editable DataGrid in Flex, with data full of numbers. The columns
I have simple mxml code <mx:DataGrid id=DGG editable=true> <mx:dataProvider> <mx:Object scheduledDate=4/1/2006/> </mx:dataProvider> </mx:DataGrid> <mx:Button
I have a WPF MVVM app that contains an editable DataGrid. I am subscribing
Is it possible to show an editable datagrid inside a combo box? I have
I have an activity that contains several user editable items (an EditText field, RatingBar,
I have a simple table view which is editable. All I need the user

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.