Click here to Skip to main content
15,905,414 members
Home / Discussions / C#
   

C#

 
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 
AnswerRe: List Class Pin
originSH20-Jun-07 23:45
originSH20-Jun-07 23:45 
QuestionINSTEON using c# 2005 Pin
ArnieTerm20-Jun-07 22:08
ArnieTerm20-Jun-07 22:08 
AnswerRe: INSTEON using c# 2005 Pin
Colin Angus Mackay20-Jun-07 23:44
Colin Angus Mackay20-Jun-07 23:44 
QuestionWeb service error - Data is invalid !! Pin
Scott180220-Jun-07 21:52
Scott180220-Jun-07 21:52 
Questionwpf listbox [modified] Pin
MIHAI_MTZ20-Jun-07 21:41
MIHAI_MTZ20-Jun-07 21:41 
QuestionExpansion Pin
razanabanu20-Jun-07 21:40
razanabanu20-Jun-07 21:40 
AnswerRe: Expansion Pin
Christian Graus20-Jun-07 21:46
protectorChristian Graus20-Jun-07 21:46 
GeneralRe: Expansion Pin
razanabanu20-Jun-07 21:53
razanabanu20-Jun-07 21:53 
GeneralRe: Expansion Pin
Christian Graus20-Jun-07 23:55
protectorChristian Graus20-Jun-07 23:55 
GeneralRe: Expansion Pin
Kevin McFarlane21-Jun-07 0:15
Kevin McFarlane21-Jun-07 0:15 

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.