Ok so the dataview is created in design mode and those properties are
added?
I can't look at this until the weekend sorry. I'll pull down your code
example and recreate the problem and have a look. Hope it can wait this
long.
Cheers,
Steven
(E-Mail Removed) wrote:
> Hi.
>
> Sorry for not getting back right away.
>
> Here is the code example.
>
> Try
> 'Fill the dataset
> SqlDataAdapter1.Fill(DataSet11, "TestTable")
> 'Set a row filter to make sure that only one record is in the
> grid
> DataView1.RowFilter = "TableUID = 1 or testfield = ''"
> 'Now create a blank row
> nr = DataSet11.Tables("testtable").NewRow
>
> With nr
> .Item("testfield") = ""
> End With
>
> DataSet11.Tables("testtable").Rows.Add(nr)
>
> Catch x As Exception
> MsgBox(x.Message)
> End Try
>
> That's it....Make sure that the Dataview does not allow new records but
> does allow editing.
>
> Thanks.
>
> Steven Nagy wrote:
> > > Should I upgrade the .net framework?
> >
> > Well yes, but not if its just to fix your problem!
> >
> > Can you post your small example?
> > I will run it locally and see if I can recreate the bug.
> >
> > SN