Question about using DataGrid in VB.Net

  • Thread starter Thread starter LLJ
  • Start date Start date
L

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.
 
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.
 
I am working on Windows Form not Web Form. Do you know any good
reference books for Windows Form controls uing?

Thanks.
 
Back
Top