List Info

Thread: VB .NET Windows Form - Removes the Append Row from Datagrid




VB .NET Windows Form - Removes the Append Row from Datagrid
user name
2006-09-28 07:19:44
Dear Expert,

How to remove the append row from the datagrid, when data
got child
data ? (Master/Details data in a dataset)

The following scripts only works when the data in single
level, if my
data got child when i expand from there it will be able to
append new
row.

Dim cm As CurrencyManager =
CType(Me.BindingContext(dgDataExt.DataSource,
dgDataExt.DataMember),
CurrencyManager)
CType(cm.List, DataView).AllowNew = False

Thanks.

Best Regards,
Chen Fock Siong

28-Sep-2006


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "DotNetDevelopment, VB.NET, C# .NET,
ADO.NET, ASP.NET, XML, XML Web Services,.NET Remoting"
group.
To post to this group, send email to DotNetDevelopmentgooglegroups.com
To unsubscribe from this group, send email to
DotNetDevelopment-unsubscribegooglegroups.com
For more options, visit this group at http
://groups.google.com/group/DotNetDevelopment
-~----------~----~----~----~------~----~------~--~---

[1]

about | contact  Other archives ( Real Estate discussion Medical topics )