Click here to Skip to main content
15,885,309 members
Home / Discussions / C#
   

C#

 
GeneralRe: Accessing a .mdb database on a CD Pin
Braulio Dez3-Sep-03 5:47
Braulio Dez3-Sep-03 5:47 
GeneralOne more tip Pin
Braulio Dez3-Sep-03 5:58
Braulio Dez3-Sep-03 5:58 
GeneralRe: Accessing a .mdb database on a CD Pin
Anonymous3-Sep-03 6:52
Anonymous3-Sep-03 6:52 
GeneralRe: Accessing a .mdb database on a CD Pin
Den2Fly4-Sep-03 0:58
Den2Fly4-Sep-03 0:58 
GeneralGrid Pin
Roger Alsing2-Sep-03 20:47
Roger Alsing2-Sep-03 20:47 
GeneralRe: Grid Pin
Braulio Dez3-Sep-03 5:33
Braulio Dez3-Sep-03 5:33 
GeneralRe: Grid Pin
Roger Alsing3-Sep-03 20:53
Roger Alsing3-Sep-03 20:53 
GeneralDataSet, DataRows etc. Pin
deanoA2-Sep-03 20:03
deanoA2-Sep-03 20:03 
Hi!
I'm trying to print the values in my DataSet.
It has a single row in it. I used this CommandText: "Select NAME from Authors"
Now the query returns all the names.

Now, I want to print the values in the dataset and I want to use foreach because I do not know how many names I might get. But the problem is, what do I use to traverse my set? I used this ff code but it generates an error:

DataRow dr = dsDBData.Tables[0].Rows[0];
foreach (DataColumn dc in dr)
{
MessageBox.Show(dc.ToString());
}

Please help.

"To teach is to learn twice"
GeneralRe: DataSet, DataRows etc. Pin
Mazdak2-Sep-03 20:13
Mazdak2-Sep-03 20:13 
GeneralRe: DataSet, DataRows etc. Pin
A.Wegierski2-Sep-03 20:14
A.Wegierski2-Sep-03 20:14 
GeneralRe: DataSet, DataRows etc. Pin
Mazdak2-Sep-03 20:20
Mazdak2-Sep-03 20:20 
GeneralRe: DataSet, DataRows etc. Pin
A.Wegierski3-Sep-03 19:28
A.Wegierski3-Sep-03 19:28 
QuestionHow to loop through a currencyManager Pin
Ista2-Sep-03 16:58
Ista2-Sep-03 16:58 
GeneralOverriding DataGrid::OnPaint Pin
Ista2-Sep-03 16:57
Ista2-Sep-03 16:57 
GeneralRe: Overriding DataGrid::OnPaint Pin
A.Wegierski3-Sep-03 19:41
A.Wegierski3-Sep-03 19:41 
GeneralRe: Overriding DataGrid::OnPaint Pin
Ista4-Sep-03 3:18
Ista4-Sep-03 3:18 
GeneralNetwork Management Tools (NMT) Pin
loveprogramming2-Sep-03 16:39
loveprogramming2-Sep-03 16:39 
Questionun-editable combobox? Pin
zecodela2-Sep-03 16:29
zecodela2-Sep-03 16:29 
AnswerRe: un-editable combobox? Pin
Ista2-Sep-03 16:47
Ista2-Sep-03 16:47 
GeneralGetting the project's/executable's root path Pin
tsigo2-Sep-03 15:04
tsigo2-Sep-03 15:04 
GeneralRe: Getting the project's/executable's root path Pin
David Stone2-Sep-03 15:17
sitebuilderDavid Stone2-Sep-03 15:17 
GeneralRe: Getting the project's/executable's root path Pin
tsigo2-Sep-03 15:26
tsigo2-Sep-03 15:26 
GeneralConnection to network shares Pin
Trojan2K2-Sep-03 13:09
Trojan2K2-Sep-03 13:09 
GeneralRe: Connection to network shares Pin
Mazdak2-Sep-03 20:18
Mazdak2-Sep-03 20:18 
GeneralSQLDMO Pin
yyf2-Sep-03 12:18
yyf2-Sep-03 12:18 

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.