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

Question about using DataGrid in VB.Net

P: n/a
LLJ
Hi list,

I am using DataGrid control in my first VB.Net project. How can i use
DataGrid to do:

1. only show data from the database when user run the application at
beginning, which means user can't make any changes to the existing
data, and can't add new rows.

2. when user click on the "Insert" button, the datagrid will allow user
to add new rows, but can't edit the exiting rows.

3. when user click on "Update" button all the rows will be editable.

thanks for any help.

Nov 21 '05 #1
Share this Question
Share on Google+
3 Replies


P: n/a
Those are three tall orders, which take some pretty good chunks of code.
You would get a lot of help from Scott Mitchell's "ASP.NET Data Web Controls
Kickstart" (I use this as a reference a lot). These topics are also covered
in numerous on-line articles, so try a search engine as well.

"LLJ" <ll******@yahoo.com> wrote in message
news:11*********************@g44g2000cwa.googlegro ups.com...
Hi list,

I am using DataGrid control in my first VB.Net project. How can i use
DataGrid to do:

1. only show data from the database when user run the application at
beginning, which means user can't make any changes to the existing
data, and can't add new rows.

2. when user click on the "Insert" button, the datagrid will allow user
to add new rows, but can't edit the exiting rows.

3. when user click on "Update" button all the rows will be editable.

thanks for any help.

Nov 21 '05 #2

P: n/a
LLJ
I am working on Windows Form not Web Form. Do you know any good
reference books for Windows Form controls uing?

Thanks.

Nov 21 '05 #3

P: n/a
Lliang,

Have a look at the properties of the defaultview (dataview) from the
datatables.
(In 2005 version some of this kind of things are as well direct on the
DataGridView)

http://msdn.microsoft.com/library/de...mberstopic.asp

The Allow properties

I hope this helps,

Cor
"LLJ" <ll******@yahoo.com> schreef in bericht
news:11*********************@g44g2000cwa.googlegro ups.com...
Hi list,

I am using DataGrid control in my first VB.Net project. How can i use
DataGrid to do:

1. only show data from the database when user run the application at
beginning, which means user can't make any changes to the existing
data, and can't add new rows.

2. when user click on the "Insert" button, the datagrid will allow user
to add new rows, but can't edit the exiting rows.

3. when user click on "Update" button all the rows will be editable.

thanks for any help.

Nov 21 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.