hi all...i'm a beginner in c#....
for selecting a field from database we use ds.Tables(0).Rows(0).item(0) in vb....
how can i do t same in c#.
shobitha
0
Newbie Poster
Recommended Answers
Jump to PostIn C#, for selecting a single cell content from a dataset use:
ds.Tables[tableIndex].Rows[rowIndex][columnIndex].ToString();
So ds.Tables(0).Rows(0).item(0) in vb becomes
ds.Tables[0].Rows[0][0].ToString(); in C#
All 2 Replies
Reply to this topic
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.