fetch data from tableAdapter

339 Views Asked by At

Using Visual Studio 2012

I have a sql database with a table(name of table: gTable). I have "gTabletableAdapter". I have wrote some query in gTabletableAdapter and now I can use them from Form1.cs like below.

greetingTableTableAdapter.SelectQuery(Int32.Parse(textBox1.Text));

this query returns an object: object .I want to use selected rows. How can I do that. I don't want to use sqlConnection. I want to use the object which my tableAdapter returned. I have searched a lot and found nothing. thanks.

0

There are 0 best solutions below