How Do You Delete a Windows Form Datasource?

J

Jonathan Wood

Okay, I'm taking one of my first few stabs at using the datagrid in windows
forms.

It doesn't seem very intuitive. I created a new datasource. When confronted
with checkboxes for all the objects in my database, I checked off two tables
that I was interested in displaying. Then when I went to configure the
datasource, I removed the columns I wasn't interested in, and added a
parameter argument. But then I get the error "The schema returned by the new
query differs from the base query." I guess the configure dialog is just for
show, eh?

So I'd like to go back and recreate my underlying datasources but I can find
no way to delete the ones that don't work. I came at it from a few different
angles but have yet to find a Delete option of some sort.

Can anyone tell me how to delete a Windows Form DataSource?

Thanks.

Jonathan


__________ Information from ESET Smart Security, version of virus signature database 4222 (20090707) __________

The message was checked by ESET Smart Security.

http://www.eset.com
 
R

RayLopez99

Okay, I'm taking one of my first few stabs at using the datagrid in windows
forms.

It doesn't seem very intuitive. I created a new datasource. When confronted
with checkboxes for all the objects in my database, I checked off two tables
that I was interested in displaying. Then when I went to configure the
datasource, I removed the columns I wasn't interested in, and added a
parameter argument. But then I get the error "The schema returned by the new
query differs from the base query." I guess the configure dialog is just for
show, eh?

You question is too vague. But I hazard that whatever you did to the
datasource did not persist, hence the error.

Stick to doing plain vanilla stuff with datagrid. They are not really
designed robustly enough to do esoteric stuff. Stick to the textbook
examples IMO.

RL
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top