Ohh..

first i am importing the dataGrid controls
import fl.controls.dataGrid;
Then i made somo or more object like this :
var variableName:Object = {COLUMNNAME1:"Your first data (0,0)",COLUMNNAME2:"your second data (0,1)"}
then u can make the data grid in two ways, make with make the new dataGrid Object, or drag over the dataGrid Component in the stage..

if you want to make the new object of the dataGrid, here :
var dataGridObjectName:dataGrid = new dataGrid();
Then make the Column name like this :
dataGridObjectName.columns = ["COLUMNNAME1","COLUMNNAME2"];
Nah then i add the Object that i have made to the dataGrid like this :
dataGridObjectName.addItem(variableName);
Then u can make that position or some extra attribute to modify your dataGrid..

Nah my question is how to get the rowCount that dataGrid..

Then how to get the index of my item in data Grid, for example i want to get the first data in my first column and first row so i want to make the output like '0,0'..
about the rowCount, its not a method but just the attribute..
Nah the problem is, the rowCount show how many rows in your dataGrid which can visible or match with your height of your dataGrid..
For Example i have the Script like this
dataGridObjectName.height = 150;
dataGridObjectName..rowHeight = 30;
Nah thats mean that if i have 2 data in my dataGrid that should have output 2.
but different, thats output is 5, because if we have 30 row height, the row that can be visible is 5 (30*5 = 150), although i just have 2 data in my dataGrid..

Thank you, wish can help you too about the dataGrid Component in AS3..
