?
Solved

clear line selected in dagrid

Posted on 2011-09-26
4
Medium Priority
?
224 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 2000 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: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone 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…
This is a fine trick which I've found useful many times, when you just don't want to accidentally run a batch script or the commands needs administrator rights.
If you’ve ever visited a web page and noticed a cool font that you really liked the look of, but couldn’t figure out which font it was so that you could use it for your own work, then this video is for you! In this Micro Tutorial, you'll learn yo…
In this video, Percona Director of Solution Engineering Jon Tobin discusses the function and features of Percona Server for MongoDB. How Percona can help Percona can help you determine if Percona Server for MongoDB is the right solution for …
Suggested Courses

762 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