clear line selected in dagrid

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?
eduardo12foxAsked:
Who is Participating?
 
zzynxConnect With a Mentor Software engineerCommented:
Give this a try:

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

Open in new window

0
 
eduardo12foxAuthor Commented:
0
 
eduardo12foxAuthor Commented:
Fantastic very very thanks

congratulations!!!
0
 
zzynxSoftware engineerCommented:
You're welcome :)

Thanx 4 axxepting
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.