Jay Roy
asked on
setting value in flex datagrid position
hi guys
I have a simple requirment
In the datagrid 9th row and 9th column i need to set a data.
I am doing this
int myRow = 9;
int myCol = 9;
datagrid.dataProvider.getI temAt(myRo w)[myCol] = 'jr45444';
Doesnt seem to work.
Any idea?
thanks
I have a simple requirment
In the datagrid 9th row and 9th column i need to set a data.
I am doing this
int myRow = 9;
int myCol = 9;
datagrid.dataProvider.getI
Doesnt seem to work.
Any idea?
thanks
Sorry, miss typo use setItemAt
ASKER
thanks
what is "colName" ?
what is "colName" ?
<mx:DataGridColumn dataField="???"
colName - should be assign to dataField what are you using for column 9
ASKER
when i use setItemAt
var item:Object = datagrid.dataProvider.setI temAt(myRo w);
i get
Argument count mismatch on mx.collections::ListCollec tionView/s etItemAt() . Expected 2, got 1.
thanks
var item:Object = datagrid.dataProvider.setI
i get
Argument count mismatch on mx.collections::ListCollec
thanks
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
got it.thanks
ASKER
any help with next question greatly appreciated
https://www.experts-exchange.com/questions/27298045/this-parentDocument-for-actionscript-file.html
https://www.experts-exchange.com/questions/27298045/this-parentDocument-for-actionscript-file.html
car dataField:String = "colName";
var item:Object = datagrid.dataProvider.getI
item[dataField] = "jr45444";
datagrid.dataProvider.setI