Click here to Skip to main content
15,892,746 members
Home / Discussions / Mobile
   

Mobile

 
AnswerRe: 850604 - GAPI for Windows CE 4.2 Pin
Frank Weseloh23-Dec-06 6:52
Frank Weseloh23-Dec-06 6:52 
QuestionAccessing data in a pocket access database using evc4 Pin
sdt2425-Aug-06 5:55
sdt2425-Aug-06 5:55 
QuestionNotification icon in the system tray Pin
AndriyBabiy24-Aug-06 11:37
AndriyBabiy24-Aug-06 11:37 
QuestionIncoming Call Notification compact framework Pin
deanxp23-Aug-06 4:30
deanxp23-Aug-06 4:30 
QuestionMobile applications for simple cell phones Pin
AmitDey22-Aug-06 18:57
AmitDey22-Aug-06 18:57 
AnswerRe: Mobile applications for simple cell phones Pin
alexey N22-Aug-06 21:17
alexey N22-Aug-06 21:17 
QuestionSQL CE Connections Pin
DazJack122-Aug-06 3:13
DazJack122-Aug-06 3:13 
AnswerRe: SQL CE Connections Pin
Chris S Kaiser28-Aug-06 11:09
Chris S Kaiser28-Aug-06 11:09 
DazJack1 wrote:
Can i connect directly to an SQL Database to edit data like in access. (if i understand correctly sql makes a temp copy of a table and then inserts the changes to the actual table when finished)?


For this type of behavior your gonna want to use a DataSet. You'll have to create the tables and relationships within the DataSet to reflect your database structure. You then call Fill() on your adapter to populate it. Then just modify the DataSet, all changes are in memory only. Then call Update() on the adapter that's mapped to it to push those changes to your database.

But this isn't really advised. On the desktop its somewhat of a performance hog, as it simulates an in memory database with all the fat and trimmings. You would be better using a custom object collection and populating that with a DataReader. Then as you make changes, use UPDATAE SQL statements to push those changes to the database. One advantage if your using the SqlCeDataReader is that you can have multiple readers open, so nesting isn't an issue when populating through multiple readers.


DazJack1 wrote:
What is the difference detween a dataadapter (and or datareader) and a vb6 Recordset??


A dataadapter adapts your DataSet to your DataBase. A datareader is just that, it reads data in a forward only pass that's fairly optimized. Its slim vs the fat of the DataSet/Adapter combo. You execute the sql, and read the values while iterating through the rows. The Recordset is a mapping to a table, view, or stored proc. Similar to the DataSet/Adapter combo, with the option of Reader like behavior, if your using custom SQL.


DazJack1 wrote:
is there a way i can use a text box and datagrid as a search tool based on the Textbox keypress event - similar to the following code in vb6

data1.databasename = dbPath
strSQL = "SELECT * FROM Table WHERE data = '" & TextBox.text & "'"
data1.recordsource = strSQL


I haven't had the need for this yet. But there are many things you can do with the databinding mechanisms in the controls and with DataSets & IList.

Off the top of my head(you'd have to search msdn to verify) I think you can put a filtered view on your DataSet to get a custom DataView that's bound to the textbox control for a parameter, and just bind the DataGrid to this view from the DataSet.

This statement is false.

Questionintroduction Pin
abhi851921-Aug-06 5:56
abhi851921-Aug-06 5:56 
QuestionTrying to connect to BT headset programatically, but can't make it work !! Pin
PG200617-Aug-06 12:47
PG200617-Aug-06 12:47 
QuestionMedia player Pin
Mohammad A Gdeisat16-Aug-06 22:38
Mohammad A Gdeisat16-Aug-06 22:38 
QuestionCompact framework File Existing..... Pin
Sri harini14-Aug-06 23:35
Sri harini14-Aug-06 23:35 
QuestionDynamically Adding Controls to a Panel Pin
RB@Emphasys14-Aug-06 10:22
RB@Emphasys14-Aug-06 10:22 
AnswerRe: Dynamically Adding Controls to a Panel Pin
RB@Emphasys14-Aug-06 10:43
RB@Emphasys14-Aug-06 10:43 
QuestionHow to operate Excel on Pocket PC by using C#? Pin
blackmash11-Aug-06 22:01
blackmash11-Aug-06 22:01 
QuestionListview in windows mobile Pin
Sri harini9-Aug-06 22:09
Sri harini9-Aug-06 22:09 
AnswerRe: Listview in windows mobile Pin
lincyang15-Jan-09 20:51
lincyang15-Jan-09 20:51 
QuestionWindows Mobile 2003 Pocket PC or 5.0 Sample Applications/Code/Tutorial? Pin
Coolarj109-Aug-06 13:38
Coolarj109-Aug-06 13:38 
AnswerRe: Windows Mobile 2003 Pocket PC or 5.0 Sample Applications/Code/Tutorial? [modified] Pin
Michael Hendrickx20-Aug-06 0:39
Michael Hendrickx20-Aug-06 0:39 
QuestionHow to overwrite the power button in a pocket PC? Pin
msolh7-Aug-06 10:23
msolh7-Aug-06 10:23 
QuestionHelp Required for Development of Mobile Application on Window Mobile platform 5.0 [modified] Pin
phijophlip4-Aug-06 0:50
phijophlip4-Aug-06 0:50 
AnswerRe: Help Required for Development of Mobile Application on Window Mobile platform 5.0 Pin
Sarvesvara (BVKS) Dasa5-Aug-06 17:47
Sarvesvara (BVKS) Dasa5-Aug-06 17:47 
QuestionCombo Box in ListView Pin
kakarato3-Aug-06 23:42
kakarato3-Aug-06 23:42 
Questionsending data to the server using webservice Pin
lj_163-Aug-06 22:33
lj_163-Aug-06 22:33 
QuestionMerge Replication. Pin
R.Hariharan3-Aug-06 0:35
R.Hariharan3-Aug-06 0:35 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.