5 Replies Latest reply on Jan 16, 2012 12:56 PM by t4sca

    How do I check if Datagrid has is not null




      I have several tabs and on one of them there are 4 Datagrids, Each one has to have a selectedd Item when the calculate button is pressed.


      I Tried checking DatagrisName.SelectedItem != null but it never gets there because thie error is thrown:


      TypeError: Error #1009: Cannot access a property or method of a null object reference.

                at Modules::Manning/calculatemanning()[/Users/Rich/Dropbox/FlexProjects/ASPETablesDTApp/src/ Modules/Manning.mxml:127]

                at Modules::Manning/__btnCalculateFlow_click()[/Users/Rich/Dropbox/FlexProjects/ASPETablesDT App/src/Modules/Manning.mxml:260]



      How can I check for this condition?