You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@royale.apache.org by gr...@apache.org on 2022/02/18 01:25:22 UTC

[royale-asjs] branch develop updated: minor change: Add columnCount to mx DataGrid

This is an automated email from the ASF dual-hosted git repository.

gregdove pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/royale-asjs.git


The following commit(s) were added to refs/heads/develop by this push:
     new bf46072  minor change: Add columnCount to mx DataGrid
bf46072 is described below

commit bf460729a53b006d9298196ccc61952fbc0455c4
Author: greg-dove <gr...@gmail.com>
AuthorDate: Fri Feb 18 14:24:56 2022 +1300

    minor change: Add columnCount to mx DataGrid
---
 .../projects/MXRoyale/src/main/royale/mx/controls/DataGrid.as      | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/frameworks/projects/MXRoyale/src/main/royale/mx/controls/DataGrid.as b/frameworks/projects/MXRoyale/src/main/royale/mx/controls/DataGrid.as
index 44625ae..ff4c240 100644
--- a/frameworks/projects/MXRoyale/src/main/royale/mx/controls/DataGrid.as
+++ b/frameworks/projects/MXRoyale/src/main/royale/mx/controls/DataGrid.as
@@ -1278,6 +1278,13 @@ public class DataGrid extends DataGridListBase/*ListBase*/ implements IDataGrid/
     }
 
     /**
+     * @royaleignorecoercion org.apache.royale.core.IDataGridModel
+     */
+    override public function get columnCount():int{
+        return model ? IDataGridModel(model).columns.length : 0;
+    }
+
+    /**
      *  @private
      *  Storage for the draggableColumns property.
      */