Datagrid-ForeignKeyConstraint [ignore the tablestyle] ??

  • Thread starter Thread starter Agnes
  • Start date Start date
A

Agnes

For single datagrid, i can bind the table very well, I can add
myGridTablestyle to the datagrid.
[i use dataview, and set dataview.allownew =false]

However, after i set the relations before dgParents and dgDetails. It ignore
my tablestyle().
It shows all the data and it allow the user to add the new row..
I understand that I can't use dataview ,right ? (e.g dgParents.datasource =
mydataset )

I want the dgParents readonly , but the user can choose the data in
dgparents and then input the data in dgDetails.

How can I do that ?
Thanks
From Agnes
 
Hi,

I did a little experimenting and found that you have to set the
datagrid readonly property to true. As for the tablestyle being ignored
make sure you use the table name for the mappingname not the relations
name.

Ken
--------------------

Agnes said:
For single datagrid, i can bind the table very well, I can add
myGridTablestyle to the datagrid.
[i use dataview, and set dataview.allownew =false]

However, after i set the relations before dgParents and dgDetails. It
ignore
my tablestyle().
It shows all the data and it allow the user to add the new row..
I understand that I can't use dataview ,right ? (e.g dgParents.datasource
=
mydataset )

I want the dgParents readonly , but the user can choose the data in
dgparents and then input the data in dgDetails.

How can I do that ?
Thanks
From Agnes
 
Back
Top