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?
Loading
Rajendra DeopuraPosted Jan 26, 2009, 8:40 AM
Try this link :
http://www.dotnetbips.com/articles/searcharticles.aspx?criteria=DataGridView
Thanks
SylwesterPosted Jan 26, 2009, 6:31 AM
Hi,
It's cool staff to edit records in the GridView but it's more diffiult to do that. You have to catch some validation etc. If you need only readonly support. Try use DataAdapter. I think it's the easest way to populate data in the GridView.