Click here to Skip to main content
15,921,716 members
Home / Discussions / C#
   

C#

 
GeneralRe: why we using properties Pin
Martin#21-Jun-07 1:58
Martin#21-Jun-07 1:58 
GeneralRe: why we using properties Pin
Martin#21-Jun-07 1:22
Martin#21-Jun-07 1:22 
AnswerRe: why we using properties Pin
DavidNohejl21-Jun-07 1:33
DavidNohejl21-Jun-07 1:33 
AnswerRe: why we using properties [modified] Pin
PIEBALDconsult21-Jun-07 9:12
mvePIEBALDconsult21-Jun-07 9:12 
QuestionRe: why we using properties Pin
Martin#21-Jun-07 9:30
Martin#21-Jun-07 9:30 
AnswerRe: why we using properties Pin
PIEBALDconsult21-Jun-07 10:35
mvePIEBALDconsult21-Jun-07 10:35 
GeneralRe: why we using properties Pin
Martin#21-Jun-07 10:49
Martin#21-Jun-07 10:49 
GeneralRe: why we using properties Pin
PIEBALDconsult21-Jun-07 11:02
mvePIEBALDconsult21-Jun-07 11:02 
QuestionReading the MS Visio File Pin
MARKZAI21-Jun-07 1:06
MARKZAI21-Jun-07 1:06 
AnswerRe: Reading the MS Visio File Pin
Ravi Dhingra4-Oct-10 0:15
Ravi Dhingra4-Oct-10 0:15 
QuestionActive Directory Pin
Tauseef A21-Jun-07 0:59
Tauseef A21-Jun-07 0:59 
AnswerRe: Active Directory Pin
originSH21-Jun-07 1:01
originSH21-Jun-07 1:01 
QuestionHow To Change Printer orientation ? Pin
AbuAsseel21-Jun-07 0:26
AbuAsseel21-Jun-07 0:26 
QuestionEditing row in details view in c# Pin
Farhan Ali21-Jun-07 0:01
Farhan Ali21-Jun-07 0:01 
QuestionCant i drag and drop between diferent forms? Pin
sinosoidal20-Jun-07 23:54
sinosoidal20-Jun-07 23:54 
AnswerRe: Cant i drag and drop between diferent forms? Pin
originSH21-Jun-07 0:04
originSH21-Jun-07 0:04 
QuestionList Class Pin
sangramkp20-Jun-07 23:20
sangramkp20-Jun-07 23:20 
AnswerRe: List Class Pin
Colin Angus Mackay20-Jun-07 23:42
Colin Angus Mackay20-Jun-07 23:42 
sangramkp wrote:
I have a dataset, how can i convert this dataset to a List or an object


Strictly speaking, a DataSet is already an object.

What do you want to list? A dataset contains many tables, which contain many rows, which contain many columns?

// Creates a list of DataTables
List<DataTable> tables = new List<DataTable>();
foreach(DataTable table in myDataSet.Tables)
{
    // There may be a method that does this already.
    // This is just off the top of my head.
    tables.Add(table);
}




Upcoming events:
* Glasgow: Mock Objects, SQL Server CLR Integration, Reporting Services, db4o, Dependency Injection with Spring ...
* Reading: Developer Day 5

Ready to Give up - Your help will be much appreciated.


My website

GeneralRe: List Class Pin
sangramkp20-Jun-07 23:57
sangramkp20-Jun-07 23:57 
GeneralRe: List Class Pin
Guffa21-Jun-07 0:10
Guffa21-Jun-07 0:10 
GeneralRe: List Class Pin
sangramkp21-Jun-07 1:26
sangramkp21-Jun-07 1:26 
AnswerRe: List Class Pin
Guffa21-Jun-07 3:24
Guffa21-Jun-07 3:24 
GeneralRe: List Class Pin
sangramkp21-Jun-07 3:37
sangramkp21-Jun-07 3:37 
GeneralRe: List Class Pin
Colin Angus Mackay21-Jun-07 3:44
Colin Angus Mackay21-Jun-07 3:44 
GeneralRe: List Class Pin
sangramkp21-Jun-07 3:28
sangramkp21-Jun-07 3:28 

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.