about the "readonly" property of DataGrid

  • Thread starter Thread starter woodpecker
  • Start date Start date
W

woodpecker

when I set readonly=true,I can't set it back to the value "false",why?

Anybody can tell me the reason and fix the problem?

Thanks advance.

Woodpecker.
 
Put a script in your .aspx or .ascx page to change value.

<SCRIPT language="vb" runat="server">
Private Function TrueOrFalse(BitField As Short) As Boolean
If BitField > 0 Then
Return True
Else
Return False
End If
End Function 'TrueOrFalse

Private Function EditField(controlName As String) As
Boolean
Select Case "SomeValue"
Case "Value"
Return True
Case Else
Return False
End Select
End Function
</Script>
 
Back
Top