Loading
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Baimey RajeshRank #1,338 · 1.3K reputationPosted Sep 9, 2015, 4:38 AM EDT
Baimey RajeshRank #1,338 · 1.3K reputationPosted Sep 9, 2015, 9:45 PM EDT
Baimey RajeshRank #1,338 · 1.3K reputationPosted Sep 9, 2015, 11:00 PM EDT
Baimey RajeshRank #1,338 · 1.3K reputationPosted Sep 8, 2015, 4:32 AM EDT
do u want to remove from the database on each item click. or do u have a separate button to delete?Vedant104 reputationPosted Sep 8, 2015, 4:35 AM EDT
Harshad PansuriyaRank #1,124 · 1.6K reputationPosted Sep 8, 2015, 4:41 AM EDT
Here's the general path you'll have to follow.
ArrayListthat is populating yourListView.notifyDataSetChanged()on theAdapterthat is being used for theListViewArun Kumar41 reputationPosted Sep 8, 2015, 4:43 AM EDT
Baimey RajeshRank #1,338 · 1.3K reputationPosted Sep 8, 2015, 4:48 AM EDT
Harshad PansuriyaRank #1,124 · 1.6K reputationPosted Sep 8, 2015, 4:54 AM EDT
chkBox.setOnClickListener(new new OnClickListener() { @Override public void onClick(View v) { // TODO Auto-generated method stub CheckBox cb = (CheckBox)v; if(cb.isChecked() == true) { String getStrinValue = cb.getTExt().toString(); // here you will get the value of selected CheckBox // And now you have to perform your deletion operation as usual. } }Baimey RajeshRank #1,338 · 1.3K reputationPosted Sep 8, 2015, 5:16 AM EDT
Vedant104 reputationPosted Sep 9, 2015, 12:09 AM EDT
Baimey RajeshRank #1,338 · 1.3K reputationPosted Sep 9, 2015, 1:06 AM EDT
Baimey RajeshRank #1,338 · 1.3K reputationPosted Sep 9, 2015, 1:08 AM EDT
finallystatement. The Dispose method will automatically call the .Close method which will return the connection to the ADO.NET connection pool so that it can be reused.Vedant104 reputationPosted Sep 9, 2015, 3:00 AM EDT
Baimey RajeshRank #1,338 · 1.3K reputationPosted Sep 9, 2015, 3:14 AM EDT
Baimey RajeshRank #1,338 · 1.3K reputationPosted Sep 9, 2015, 3:29 AM EDT
Vedant104 reputationPosted Sep 9, 2015, 3:47 AM EDT
Vedant104 reputationPosted Sep 9, 2015, 4:23 AM EDT
Baimey RajeshRank #1,338 · 1.3K reputationPosted Sep 9, 2015, 4:25 AM EDT
Vedant104 reputationPosted Sep 9, 2015, 4:30 AM EDT
Baimey RajeshRank #1,338 · 1.3K reputationPosted Sep 9, 2015, 4:33 AM EDT
Vedant104 reputationPosted Sep 9, 2015, 8:29 AM EDT
Vedant104 reputationPosted Sep 9, 2015, 9:42 PM EDT
Vedant104 reputationPosted Sep 9, 2015, 9:42 PM EDT
Vedant104 reputationPosted Sep 9, 2015, 9:42 PM EDT
Vedant104 reputationPosted Sep 9, 2015, 9:50 PM EDT
Baimey RajeshRank #1,338 · 1.3K reputationPosted Sep 9, 2015, 9:53 PM EDT
Baimey RajeshRank #1,338 · 1.3K reputationPosted Sep 9, 2015, 10:05 PM EDT
Vivek Joy139 reputationPosted Sep 11, 2015, 5:21 AM EDT