J
John Smith
Hey folks,
I'm writing a Windows application which has many forms which have Datagrids
on them to display data. These datagrids will not be editable in anyway.
They are there to just view the results of a query (and perhaps double click
on a row to open a new form). Additionally, the queries will often involve
the use of 5 or more tables.
Because efficiency (both speed and memory) is the primary concern what is
the best method to bind to the datagrid?
Coming from a C# asp.net background, I was surprised to see that it appears
you can't bind a SqlDataReader to the datagrid. All examples I've seen
involve using a DataSet and a SqlDataAdapter. Is that really the only and
best way? What other effecient solutions are there? (forward-only
solutions are fine)
Thanks!
I'm writing a Windows application which has many forms which have Datagrids
on them to display data. These datagrids will not be editable in anyway.
They are there to just view the results of a query (and perhaps double click
on a row to open a new form). Additionally, the queries will often involve
the use of 5 or more tables.
Because efficiency (both speed and memory) is the primary concern what is
the best method to bind to the datagrid?
Coming from a C# asp.net background, I was surprised to see that it appears
you can't bind a SqlDataReader to the datagrid. All examples I've seen
involve using a DataSet and a SqlDataAdapter. Is that really the only and
best way? What other effecient solutions are there? (forward-only
solutions are fine)
Thanks!