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#.

In 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#

thank u aneesh....
it worked.........

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.