Manjula
- Forum posts: 10
Jun 29, 2019, 8:26:23 AM via Website
Jun 29, 2019 8:26:23 AM via Website
Hai,
Can anyone pls tell me how to update and delete a particular row in gridview?
Jun 29, 2019, 8:26:23 AM via Website
Jun 29, 2019 8:26:23 AM via Website
Hai,
Can anyone pls tell me how to update and delete a particular row in gridview?
Jul 2, 2019, 8:29:22 AM via Website
Jul 2, 2019 8:29:22 AM via Website
For Delete Operation:
Remove.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
StringLIST.remove(3);
arrayadapter.notifyDataSetChanged();
Toast.makeText(MainActivity.this,"Delete Successfully", Toast.LENGTH_SHORT).show();
}
});
For Update Operation:
StringLIST.get(0).setTitle("New Title");
arrayadapter.notifyDataSetChanged();
Jul 3, 2019, 9:53:39 AM via Website
Jul 3, 2019 9:53:39 AM via Website
On which device do you want to update or delete a particular row, please confirm
Jul 3, 2019, 4:57:32 PM via Website
Jul 3, 2019 4:57:32 PM via Website
Hai jameselsworth30,
— modified on Jul 7, 2019, 9:10:14 AM
Recommended editorial content
With your consent, external content is loaded here.
By clicking on the button above, you agree that external content may be displayed to you. Personal data may be transmitted to third-party providers in the process. You can find more information about this in our Privacy Policy.