473,385 Members | 1,661 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Several questions using datagrid on the IDE

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
1 1114
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Gidi | last post by:
hello, i have a datagrid (in C#) and i have 3 questions: 1. how can i know how many rows my dataGrid(dataSet\DataAdapter) has? is it possiable to know with asking the database or i must do it...
2
by: Hemang Shah | last post by:
Hello I've few questions regarding ADO & C#: 1) Is it possible to view tata from multiple tables in the Datagrid control ? Most of the examples I see are only for 1 table. 2) In...
2
by: Vincent | last post by:
1. In my web application, can I call another exe application ? eg. when user click a button, a.exe will be executed 2. If the web page has two frames, can I control them in asp.net ? ie....
9
by: eitan | last post by:
Hello, I am using Microsoft Visual Studio 2003 .NET. I have several question, please. 1) I have a connection to the database, which I create it at login, by application("conMain") (I have...
5
by: Eitan M | last post by:
Hello, 2 questions about refresh. 1) I want to do elegant refresh of the html page. When refreshing a page, the page is blink. Is there anyway to refresh the page, without the blink...
3
by: Stan Sainte-Rose | last post by:
Hi, I have a winform with 1 datagrid and several datagridtablesStyles mapping different datatables. Is it possible to select a specific DataGridTableStyle for the datagrid ? Or do I have to...
10
by: Kejpa | last post by:
Hi, I've just started using the datagrid and I have a few questions on it... 1. How do you autosize the columns to fit the content programmatically? When you double click between two columns...
3
by: melton9 | last post by:
I'm just getting into using datagrid and have a couple of questions. 1.)How do you get the grid to show the values of a datatable automatically? Currently I have to hit the + sign and then...
0
by: Newish | last post by:
Hi Couple of questions on datagrid 1) Is there a performance issue when using datagrid to display data from a datatable. 2) Is there a security issue when using datagrid to display data...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.