T
Tyke Czekalski
I need to allow edits to my data grid. If I have a single
table in my dataset, the following code works great.
CurrencyManager cm = (CurrencyManager)this.BindingContext
[this.grdPlates.DataSource,
this.grdPlates.DataMember];
((DataView)cm.List).AllowNew = false;
However, I have a scenario with mulitple data tables with
a relation between them. I call the above code on the
parent table which is set as the original data member
object, and it does prevent the row from displaying in the
parent table.
But when I navigate to the child table, the add new row
appears. I've tried several variations and events with no
luck turning off the add new row on this child table.
Anyone have any suggestions?
Tyke
table in my dataset, the following code works great.
CurrencyManager cm = (CurrencyManager)this.BindingContext
[this.grdPlates.DataSource,
this.grdPlates.DataMember];
((DataView)cm.List).AllowNew = false;
However, I have a scenario with mulitple data tables with
a relation between them. I call the above code on the
parent table which is set as the original data member
object, and it does prevent the row from displaying in the
parent table.
But when I navigate to the child table, the add new row
appears. I've tried several variations and events with no
luck turning off the add new row on this child table.
Anyone have any suggestions?
Tyke