Any idea how to set value at a cell level in a data grid
I used the following
private function dataPanel(rowindex:Number, Var1:Number, Var1Name:String, Var2:Number, Var2Name:String, Var3:Number, Var3Name:String, Var4:Number, Var4Name:String): void { trace("rowindex ", rowindex)
if (rowindex==0) {
col1.headerText=Var1Name;
col2.headerText=Var2Name;
col3.headerText=Var3Name;
col4.headerText=Var4Name;
} else {
col1[rowindex].valueOf()=Var1;
col2[rowindex].valueOf()=Var2;
col3[rowindex].valueOf()=Var3;
col4[rowindex].valueOf()=Var4;
}
}
col1,col2, col3, col4 are id's for the 4 columns in data grid rowindex increments for value in each row...
it compiles and i get an error- it gets a strange error when i try to assign col1[]. how do i achieve this?