J
John
Hi,
does anyone know how to prevent deletions and insertions
in a bound datagrid?
John
does anyone know how to prevent deletions and insertions
in a bound datagrid?
John
-----Original Message-----
Hi John,
It's simple:
CurrencyManager cm = (CurrencyManager)BindingContext [grid.DataSource,
grid.DataMember];
DataView view = (DataView)cm.List;
view.AllowNew = false;
view.AllowDelete = false;
--
Dmitriy Lapshin [C# / .NET MVP]
X-Unity Test Studio
http://x-unity.miik.com.ua/teststudio.aspx
Bring the power of unit testing to VS .NET IDE
John said:Hi,
does anyone know how to prevent deletions and insertions
in a bound datagrid?
John
.
John said:Hi Dmitriy,
That doesn't seem to work I can still add and delete rows
from the grid, I do have a customised column (combobox)
would this make a difference?
John
-----Original Message-----
Hi John,
It's simple:
CurrencyManager cm = (CurrencyManager)BindingContext [grid.DataSource,
grid.DataMember];
DataView view = (DataView)cm.List;
view.AllowNew = false;
view.AllowDelete = false;
--
Dmitriy Lapshin [C# / .NET MVP]
X-Unity Test Studio
http://x-unity.miik.com.ua/teststudio.aspx
Bring the power of unit testing to VS .NET IDE
John said:Hi,
does anyone know how to prevent deletions and insertions
in a bound datagrid?
John
.