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>
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top