flex - Get or Set Cell Values in a Datagrid progmatically -
in flex 4 using pre populated data grid, how can or set specific values programatically, ie wont using selecteditems etc.
how reference value of cell in row 4 colum 6 example.
please , thank in advance help.
craig
cast dataprovider of datagrid listcollectionview
, use getitemat method.
listcollectionview(datagrid.dataprovider).getitemat(requiredrow).appropriateproperty = newvalue;
update: in case column name dynamic, can fetch using like:
var data_field:string = dgviewpreview.columns[6].datafield; //for 6th column listcollectionview(datagrid.dataprovider).getitemat(requiredrow)[data_field] = newvalue;
Comments
Post a Comment