how to change text of custom listview button that is added dynamically and how to perform click event of this button
<p>I have a listiview in which rows are like this</p>

<p>ListView</p>

<hr>

<p>[Text1]     [Button1]</p>

<h2>[Text2][Text3]  [Text3]</h2>

<p>when i click on button according to status text call go to server.</p>

<p>If suppose status is invite and we click the button  call send  to server according to invite and if status is chat request then button text will be invite and one more button will be shown is this case and if in this case if user click on invite ,then invitation send to visitor.and button text change to join and then if click on join then status text will be again change.how can this possible.</p>
