Solved

clear line selected in dagrid

Posted on 2011-09-26
4
219 Views
Last Modified: 2012-05-12
Hello,

I have a question I have a datagrid which is populated by entering some data in a textimput but I need to delete a particular row of datagrid and do not know how. For example you later add 10 rows and then try to delete only the line 3 for example, how can I do to delete the selected row?
0
Comment
Question by:eduardo12fox
  • 2
  • 2
4 Comments
 

Author Comment

by:eduardo12fox
ID: 36709306
0
 
LVL 37

Accepted Solution

by:
zzynx earned 500 total points
ID: 36709580
Give this a try:

private function Clear_Line():void{
    grid.dataProvider.removeItemAt(grid.dataProvider.getItemIndex(grid.selectedItem));
}

Open in new window

0
 

Author Closing Comment

by:eduardo12fox
ID: 36711042
Fantastic very very thanks

congratulations!!!
0
 
LVL 37

Expert Comment

by:zzynx
ID: 36714877
You're welcome :)

Thanx 4 axxepting
0

Featured Post

ScreenConnect 6.0 Free Trial

Want empowering updates? You're in the right place! Discover new features in ScreenConnect 6.0, based on partner feedback, to keep you business operating smoothly and optimally (the way it should be). Explore all of the extras and enhancements for yourself!

Question has a verified solution.

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

Suggested Solutions

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…
Is your phone running out of space to hold pictures?  This article will show you quick tips on how to solve this problem.
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

840 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