hi,
i am using 2 datagrids tied together with datarelations in a dataset. That
part works great.
i need to suppress the new row on the datagrid but cannot use the readonly
properties on the datagrid so i can allow the user to check off on bool
columns.
I know dataviews can prevent it with allowNew set to false but i can't
seem to use dataviews with the relationships

thanks al

RE: preventing new rows in datagrids when using relations by AshishKelo

AshishKelo
Thu Jan 27 13:55:05 CST 2005

Hi Albert,

Using datagrids are much functional, when u using the DataRelation property
define the relationship with the AddWithKey components also you can mark the
records.

You need to add a new row which need to be supress this is not done in
datagrid and the new row binded in the dataset, you need to try out the
connected property using the AllowNulls = true.

Thanks,
Ashish Kelo

"Albert Price" wrote:

> hi,
> i am using 2 datagrids tied together with datarelations in a dataset. That
> part works great.
> i need to suppress the new row on the datagrid but cannot use the readonly
> properties on the datagrid so i can allow the user to check off on bool
> columns.
> I know dataviews can prevent it with allowNew set to false but i can't
> seem to use dataviews with the relationships
>
> thanks al
>

RE: preventing new rows in datagrids when using relations by AlbertPrice

AlbertPrice
Thu Jan 27 14:13:02 CST 2005

Ashish,
I want to suppress the *row on the datagrid. I understand that if i use the
readonly = true property on the dataGrid that will do it or if i use a
dataview and set the allowNew = false it will also accomplish the same.
my problem is that i need my users to change the status of a bool column to
select rows for modification; I cant use the readonly property on the
datagrid.
additionally i cant seem to get a dataview to work with datarelations.

in beta testing that when a user accidently uses the newrow it creates
errors and confusion.

is there any way a dataviewmanager can implement the property allowNew = false
or create a dataview out of a relation

a dataview by itself results in the child datagrid displaying all rows
please help albert

"Ashish Kelo" wrote:

> Hi Albert,
>
> Using datagrids are much functional, when u using the DataRelation property
> define the relationship with the AddWithKey components also you can mark the
> records.
>
> You need to add a new row which need to be supress this is not done in
> datagrid and the new row binded in the dataset, you need to try out the
> connected property using the AllowNulls = true.
>
> Thanks,
> Ashish Kelo
>
> "Albert Price" wrote:
>
> > hi,
> > i am using 2 datagrids tied together with datarelations in a dataset. That
> > part works great.
> > i need to suppress the new row on the datagrid but cannot use the readonly
> > properties on the datagrid so i can allow the user to check off on bool
> > columns.
> > I know dataviews can prevent it with allowNew set to false but i can't
> > seem to use dataviews with the relationships
> >
> > thanks al
> >