Click here to Skip to main content
15,895,557 members
Home / Discussions / C#
   

C#

 
GeneralRe: A little help.. Pin
Bojan Rajkovic9-May-04 15:09
Bojan Rajkovic9-May-04 15:09 
GeneralRe: A little help.. Pin
Heath Stewart8-May-04 20:20
protectorHeath Stewart8-May-04 20:20 
GeneralUsing an xsd file for a dataset Pin
MrJJKoolJ8-May-04 11:10
MrJJKoolJ8-May-04 11:10 
GeneralRe: Using an xsd file for a dataset Pin
leppie8-May-04 19:47
leppie8-May-04 19:47 
GeneralDisconnected Datasets Pin
MrJJKoolJ8-May-04 10:02
MrJJKoolJ8-May-04 10:02 
GeneralRe: Disconnected Datasets Pin
Heath Stewart8-May-04 20:18
protectorHeath Stewart8-May-04 20:18 
GeneralRe: Disconnected Datasets Pin
MrJJKoolJ9-May-04 6:44
MrJJKoolJ9-May-04 6:44 
GeneralRe: Disconnected Datasets Pin
Heath Stewart9-May-04 9:27
protectorHeath Stewart9-May-04 9:27 
So create a typed DataSet. It's just a class - nothing special. If the .NET CF designers don't support creating one, then make one in a Windows Forms application (like you mentioned) and literally move the source file to the mobile app. It should still compile since, IIRC, all the classes and members used to create a typed DataSet are supported by the .NET CF. If a particular member isn't supported, remove it or re-code the functionality. It's not magic - just a generated source file that extends certain classes in the System.Data namespace. After that, you can forget the XSD file.

Another approach is to create an XSD file and load it into a new, instantiate DataSet using the ReadXmlSchema method. The former approach will result in faster look-ups, however, since even a "simple" column lookup for a particular row goes through several steps to get the corresponding DataColumn. If you use a typed DataSet and instead refer to that DataColumn derivative, you forego all those extra look-up steps.

 

Microsoft MVP, Visual C#
My Articles
GeneralDrawing 3D piechart(the 3D depth part) Pin
Alan Zhao8-May-04 9:07
Alan Zhao8-May-04 9:07 
Questiondataset data tostring??? Pin
gman448-May-04 9:07
gman448-May-04 9:07 
AnswerRe: dataset data tostring??? Pin
Heath Stewart8-May-04 20:14
protectorHeath Stewart8-May-04 20:14 
GeneralArrays of Structures in C# .net Beginner Pin
ProgrammerA8-May-04 8:34
ProgrammerA8-May-04 8:34 
GeneralRe: Arrays of Structures in C# .net Beginner Pin
Jeff Varszegi8-May-04 11:12
professionalJeff Varszegi8-May-04 11:12 
GeneralMessage Closed Pin
8-May-04 7:33
Oshada Athulathmudali8-May-04 7:33 
GeneralRe: Flickering Images Pin
Mazdak8-May-04 8:57
Mazdak8-May-04 8:57 
GeneralRe: Flickering Images Pin
Heath Stewart8-May-04 20:09
protectorHeath Stewart8-May-04 20:09 
GeneralXML Serialization Pin
Diego F.8-May-04 7:26
Diego F.8-May-04 7:26 
GeneralRe: XML Serialization Pin
Mazdak8-May-04 8:36
Mazdak8-May-04 8:36 
GeneralRe: XML Serialization Pin
Diego F.8-May-04 14:44
Diego F.8-May-04 14:44 
Generalaccessing a property through several classes Pin
cristina_tudor8-May-04 6:29
cristina_tudor8-May-04 6:29 
GeneralRe: accessing a property through several classes Pin
ian mariano8-May-04 6:35
ian mariano8-May-04 6:35 
GeneralRe: accessing a property through several classes Pin
Meysam Mahfouzi8-May-04 6:46
Meysam Mahfouzi8-May-04 6:46 
GeneralRe: accessing a property through several classes Pin
ian mariano8-May-04 7:23
ian mariano8-May-04 7:23 
GeneralRe: accessing a property through several classes Pin
Meysam Mahfouzi8-May-04 6:38
Meysam Mahfouzi8-May-04 6:38 
GeneralRe: accessing a property through several classes Pin
Jeff Varszegi8-May-04 11:07
professionalJeff Varszegi8-May-04 11:07 

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.