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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top