Solved

clear line selected in dagrid

Posted on 2011-09-26
4
223 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
[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
  • 2
  • 2
4 Comments
 
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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

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…
Article by: Justin
In light of the WannaCry ransomware attack that affected millions of Windows machines, you might wonder if your Mac needs protecting. Yes, it does and here is how to do it.
In this video we outline the Physical Segments view of NetCrunch network monitor. By following this brief how-to video, you will be able to learn how NetCrunch visualizes your network, how granular is the information collected, as well as where to f…
Michael from AdRem Software outlines event notifications and Automatic Corrective Actions in network monitoring. Automatic Corrective Actions are scripts, which can automatically run upon discovery of a certain undesirable condition in your network.…

724 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