groups.google.com писал(а):http://groups.google.com/group/microsoft.public.dotnet.framework.aspnet/browse_thread/thread/628b5a89cca824cd/9fea07e530bc1667?lnk=st&q=Datagrid+web+application+readonly+column&rnum=8#9fea07e530bc1667
Dim col As New BoundColumn
col.HeaderText = [Header Label]
col.DataField = [FieldName]
col.Visible = True
col.ReadOnly = True
[datagrid name].Columns.Add(col)
groups.google.com писал(а):dg.Columns(0) will return a generic "DataGridColumn" object, which
does not contain a ReadOnly property.
Instead try:
Dim bc As BoundColumn
bc = CType(dg.Columns(0), BoundColumn)
bc.ReadOnly = True
Сейчас этот форум просматривают: нет зарегистрированных пользователей и гости: 49