View Single Post
Old April 19th, 2011, 04:19 AM   #1 (permalink)
bilias7
New Member
Thread Author (OP)
 
Join Date: Apr 2011
Posts: 1
 
Device(s):
Carrier: Not Provided

Thanks: 0
Thanked 0 Times in 0 Posts
Default Cursor Binding vs Object list Binding in android

Hello, i'm a newby in android development and i need some help with listview binding. I have read that the most effective way to use a listview binded to a datasource is to use a cursor which speaks directly to sqlite. I start my project using this method but i'm not able to face a critical for my application issue.

I need to change values of the binded list but those changes doesn't affect my database until user press save button. In c# i can do this in many ways like datatable or bindingsource objects.

For example, my app has a list with products with their prices. I want to change prices through a popup window which open from context menu. When the popup window close i need to display the new price in listview but i haven't save it into database yet. Finnaly when i have change prices of all products i want to press save button and update my database using a transaction.

Is there any way to succeed something like this using cursors for binding or i have to use lists of custom class objects?

Thanks in advanced and sorry for my bad usage of english.
bilias7 is offline  
Reply With Quote