Dim tableStyle As New DataGridTableStyle()
tableStyle.MappingName = "product"
'Product Code
Dim col1 As New DataGridTextBoxColumn
col1.MappingName = "prod_code"
col1.HeaderText = "Code"
col1.Width = 25
tablestyle.GridColumnStyles.Add(col1)
----
I have tried the readonly = false but this dosen't work. Help appreciated.
Pat
> I am using vb 2005
[Canned response]
This is a VB "classic" newsgroup. Questions about VB.NET (including VB
2005/2008,
which have dropped .NET from their name) are off-topic here.
Please ask .NET questions in newsgroups with "dotnet" in their names. The
*.vb.* groups are for VB6 and earlier. If you don't see the *.dotnet.*
groups on your news server, connect directly to the Microsoft server:
msnews.microsoft.com.
For questions specific to the VB.NET language, use this group:
microsoft.public.dotnet.languages.vb
Please note that things like controls and data access, which have their own
subgroups in the Classic VB hierarchy, are not language-specific in .NET, so
you should look for groups like these:
microsoft.public.dotnet.framework.windowsforms.controls
microsoft.public.dotnet.framework.adonet
(Note that "vb" is not present in the group name.)