View previous topic :: View next topic |
Author |
Message |
powder0326
Joined: 18 Mar 2009 Posts: 5
|
Posted: Sun Mar 29, 2009 10:26 pm Post subject: Want to call function when listview row selected. |
|
|
I want to call the function when the row is selected.
So I registered function in the ListView.onClick.
but, It was called only at time when the area outside of the row was clicked. |
|
Back to top |
|
|
Chris Miller
Joined: 27 Mar 2004 Posts: 514 Location: The Internet
|
Posted: Fri Apr 03, 2009 1:04 pm Post subject: Re: Want to call function when listview row selected. |
|
|
There's event selectedIndexChanged, but I'm not sure why it's not in dfldoc.
Code: | mylistview.selectedIndexChanged ~= &member_mylistview_selectedIndexChanged;
...
void member_mylistview_selectedIndexChanged(ListView sender, EventArgs ea)
{
// Use selectedIndex, etc
} |
|
|
Back to top |
|
|
powder0326
Joined: 18 Mar 2009 Posts: 5
|
Posted: Tue Apr 07, 2009 7:30 pm Post subject: |
|
|
Thanks! |
|
Back to top |
|
|
|