Well, you can't expect Visual Studio to do everything for you, simply
because there are so many possible combinations of things programmers want
to do. It provides some excellent tools that will save you a lot of time,
but at some point you have to know what it is that it is doing for you, and
be able to work with it.
Basically, here's a clue for you. When you did that dragging and dropping,
Visual Studio was busily writing code that defines a number of classes,
including strongly-typed DataSets, DataTables, and DataAdapters. It is a
DataAdapter that provides the link between the DataSet and the underlying
Data Store (in this case a database). And even though Visual Studio didn't
need to include code to update the database, delete or insert new records,
into it, in order to populate your DataSet for you, it did write that
functionality in there. Microsoft anticipated that you might want to do
something like that.
So, you just need to look at the classes that were developed for you, find
the functionality you need, and use it.
--
HTH,
Kevin Spencer
Microsoft MVP
Professional Numbskull
Hard work is a medication for which
there is no placebo.
"Greg P" <gs*@newsgroups.nospam> wrote in message
news:64**********************************@microsof t.com...
I just wanted to make sure I was clear, this link shows you how to do this
programmatically:
http://msdn2.microsoft.com/en-us/lib...6z(VS.80).aspx
Yet I want to use the visual capability of VS and not set every parameter
myself. This seems so much more complicated than in VB6 where you set the
updatable property of the datagrid!!! Why is this such a pain to do?
"Greg P" wrote:
I'm new to VS2005 and want to simply update my data with the dataGridView
that was generated when I draged my query from the Data Sources Pane. I
think I may need to create a Data Adaptor but I'm not sure? The other
think
I saw was to implement IEditable? How would I do that? Where in my
code
woudl I do that considering I am not creating the DataGridView via code?
I know this is probably the easist thing to do I just don't know how?
Thanks in advance,