|
-
Sep 9th, 2008, 11:35 PM
#1
Thread Starter
Addicted Member
Simple DataGrid question
Dear all,
I am new to VB 6.0 and my question for datagrid is as follow:
I have to write a program to display error message to user. Each message will have two columns. One is Error Number, the other column is Error Details.
For example, i want to have the following output in the datagrid if a user encounters two errors:
Error Number Error Details
------------- --------------
1123 Integer is not allow
1236 Field is too long.
In the VB 6.0, I just add a datagrid to a form, and then write the following code:
datagrid1.AllowAddNew = True
datagrid1.Row = 1
datagrid1.Columns.Item(0).Text = "1123"
datagrid1.Columns.Item(1).Text = "Integer is not allow"
But when i run the above code, it says "rowset not available". do you know why?
thanks in advance!
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|