I have make a app using sqlite table.
The sqlite table is loaded into listview with multicolumns either by quering all of data or for specific values.
On cklik of a row in listview , it opens new activity to edit data.
The new data are saved on sqlite table correctly.
I can't refresh the view only for the row/column i have change but only by quering again the adapter.
Is there a way to do that?
What I have tried:
protected override void OnActivityResult(int requestCode, Result resultCode, Intent data)
{
base.OnActivityResult(requestCode, resultCode, data);
if (resultCode == Result.Ok)
{
int IdReturned = Convert.ToInt32(data.GetStringExtra("Id_Ret"));
int ValueReturned = Convert.ToInt32(data.GetStringExtra("CurMtr_Ret"));
int ListidReturned = Convert.ToInt32(data.GetStringExtra("Listid"));
db.UpdateRec(IdReturned, ValueReturned, 1);
ICursor Rcursor = (ICursor)listView.GetItemAtPosition(ListidReturned);
db_cursor = db.FindSingleRec(IdReturned);
listView.Adapter = (IListAdapter)new MtrCursorAdapter(this, db_cursor, true);
((BaseAdapter)listView.Adapter).NotifyDataSetChanged();
}
}