Solved

clear line selected in dagrid

Posted on 2011-09-26
4
210 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
Comment Utility
0
 
LVL 37

Accepted Solution

by:
zzynx earned 500 total points
Comment Utility
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
Comment Utility
Fantastic very very thanks

congratulations!!!
0
 
LVL 37

Expert Comment

by:zzynx
Comment Utility
You're welcome :)

Thanx 4 axxepting
0

Featured Post

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

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…
Describes a method of obtaining an object variable to an already running instance of Microsoft Access so that it can be controlled via automation.
It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

728 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now