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 :)