By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,890 Members | 1,239 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,890 IT Pros & Developers. It's quick & easy.

Several questions using datagrid on the IDE

P: n/a
Hello,

For Microsoft Visual Studio .NET 2003 :

In the IDE I can put a datagrid on an aspx form.
One of it's property (design time) is datasource.
I couldn't find any datasource component on the design time
(correct me if I am wrong),
and I did :
put oledbConnection, oledbCommand, oledbAdapter on the screen
(the objects are : oledbConnection1, oledbCommand1, oledbAdapter1
respectively).

I linked the oledbConnection1 to correct database (mdb),
oledbCommand1 is : select firstname, lastname from customers.
oledbAdapter1.selectCommand is linked to oledbCommand1.
datagrid1 is a datagrid.

In the program I wrote :
Dim DS as DataSet = new DataSet
OleDbAdapter1.fill(DS, "customers")
datagrid1.dataSource = DS
datagrid1.dataMember = "customer"
datagrid1.databind()

1) Can I connect to datasource on design time (or is there even simplier
thing I can do, instead of the above code) ?
2) I know that there is possibilty to put : edit & delete commands on the
grid - How can I do that ?
3) I need to know more about designing the datagid, such as : changing the
direction of reading to rtl, etc... (I need a good sample using datagrid by
the IDE environment of Visual Studio .NET 2003), please.
4) Can I put elements whitin the grid (I want to change the cell to a combo
box, Area, or whatever ...) ?

Thanks :)
Nov 21 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
John,

The designer with a webpage takes only a strongly typed dataset.
You can generate that using the right click on the dataadapter wizard or
create that yourself by hand..

In my opinion gives both more work than what you are doing now.

I hope this helps,

Cor
Nov 21 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.