Datagridviews and Stuff

Jan 25 2009 10:20 AM
Greetings Folks:

I am in the process of teaching myself C#.NET and I am currently working with the DataGridView.
There seems to be an infinite number of ways to bind a datasource to a grid so I need some
input from the gurus:

For discussion - no code bits necessary:  We currently employ a browse --> form paradigm.  Rarely
do we inline-edit records directly in the grid (for example:  it would be extremely difficult to enter patient
information directly into a grid - you need to pull up some kind of form for insert and change functions.)
What is the best method for this type of paradigm?  Since records aren't being modified within the grid,
do we create a bound grid or an unbound grid?  If it is unbound, how do I retrieve the record id for the record
I select in the grid to pass to the form?  Which is best? DataReader, DataSet, DataTable, DataAdapter?
I do a lot of reading and I guess I still don't get what piece fits best where.  Any suggestions on books I can
get that will help me simplify these?


Answers (2)