• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 228
  • Last Modified:

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?
0
eduardo12fox
Asked:
eduardo12fox
  • 2
  • 2
1 Solution
 
eduardo12foxAuthor Commented:
0
 
zzynxSoftware 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:
Fantastic very very thanks

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

Thanx 4 axxepting
0

Featured Post

Cyber Threats to Small Businesses (Part 1)

This past May, Webroot surveyed more than 600 IT decision-makers at medium-sized companies to see how these small businesses perceived new threats facing their organizations.  Read what Webroot CISO, Gary Hayslip, has to say about the survey in part 1 of this 2-part blog series.

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now