[2 days left] What’s wrong with your cloud strategy? Learn why multicloud solutions matter with Nimble Storage.Register Now

x
?
Solved

setting value in flex datagrid position

Posted on 2011-09-08
9
Medium Priority
?
447 Views
Last Modified: 2012-05-12
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.getItemAt(myRow)[myCol] = 'jr45444';

Doesnt seem to work.
Any idea?

thanks
0
Comment
Question by:royjayd
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 5
  • 4
9 Comments
 
LVL 29

Expert Comment

by:dgofman
ID: 36503688
You need to split oppression by 3 steps

car dataField:String = "colName";
var item:Object = datagrid.dataProvider.getItemAt(myRow);
item[dataField] = "jr45444";
datagrid.dataProvider.setItem(item, myRow);
0
 
LVL 29

Expert Comment

by:dgofman
ID: 36503692
Sorry, miss typo use setItemAt
0
 

Author Comment

by:royjayd
ID: 36503744
thanks

what is "colName" ?
0
Q2 2017 - Latest Malware & Internet Attacks

WatchGuard’s Threat Lab is a group of dedicated threat researchers committed to helping you stay ahead of the bad guys by providing in-depth analysis of the top security threats to your network.  Check out our latest Quarterly Internet Security Report!

 
LVL 29

Expert Comment

by:dgofman
ID: 36503767
<mx:DataGridColumn dataField="???"
0
 
LVL 29

Expert Comment

by:dgofman
ID: 36503780
colName - should be assign to dataField what are you using for column 9
0
 

Author Comment

by:royjayd
ID: 36503791
when i use setItemAt
var item:Object = datagrid.dataProvider.setItemAt(myRow);
 
i get
Argument count mismatch on mx.collections::ListCollectionView/setItemAt(). Expected 2, got 1.

thanks
0
 
LVL 29

Accepted Solution

by:
dgofman earned 2000 total points
ID: 36503845
Did you see my posts:

var item:Object = datagrid.dataProvider.getItemAt(myRow);
item[dataField] = "jr45444";
datagrid.dataProvider.setItem(item, myRow);
then
Sorry, miss typo use setItemAt

So you should use

datagrid.dataProvider.setItemAt (item, myRow);
0
 

Author Comment

by:royjayd
ID: 36504047
got it.thanks
0
 

Author Comment

by:royjayd
ID: 36504161
0

Featured Post

Put Machine Learning to Work--Protect Your Clients

Machine learning means Smarter Cybersecurity™ Solutions.
As technology continues to advance, managing and analyzing massive data sets just can’t be accomplished by humans alone. It requires huge amounts of memory and storage, as well as the high-speed power of the cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

First things first - Preparation We need all the part for this install and it's much nicer to have them all on hand when you need them so here's what's required. Download Eclipse 3.5 32 bit (I like the Classic flavour) from here. (http://www.e…
With its various features, Office 365 can not only help you with your day-to-day business tasks, it can also do wonders for your marketing campaign.
How to fix incompatible JVM issue while installing Eclipse While installing Eclipse in windows, got one error like above and unable to proceed with the installation. This video describes how to successfully install Eclipse. How to solve incompa…
Is your data getting by on basic protection measures? In today’s climate of debilitating malware and ransomware—like WannaCry—that may not be enough. You need to establish more than basics, like a recovery plan that protects both data and endpoints.…
Suggested Courses

656 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question