I have a database with several records and want to print it contents.
How a retrieve all the entrys in the database?
I am using DataSet ans no GridVieuw,
hi vs programmer,
I've found it, however i aske myself if there is not an easier way:
StringBuilder printDatabase = new StringBuilder();
int listing = listingBindingSource.Count;
int currentPosition = listingBindingSource.Position;
BindingSource Source = new BindingSource();
DataTable dataTable = new DataTable();
for (int i = 0; i < listing; i++)
listingBindingSource.Position = i;
dataTable = carTrackerDataSet.Color.ColorNameColumn.Table; // Source.GetItemProperties(null)["DateSeen"];
Source.DataSource = dataTable;
value = Source.GetItemProperties(
and that for each table, but it works
What type of database? SQL???
Just search for all entries but leave the limitby options blank and fill the other options with all the availible rows/datasets.
Hope this helps
Microsoft is conducting an online survey to understand your opinion of the Msdn Web site. If you choose to participate, the online survey will be presented to you when you leave the Msdn Web site.
Would you like to participate?