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!