the checkboxes keep refresh

4 replies. Last post: March 28, 2011 12:42 AM by Martin Lie
Tags :
  • (None)
  • New Discussion
  • New Question
  • New Product Feedback

im using webgrid 7. I create checkbox at the server side:

 Private Sub WebGrid1_InitializeRow(ByVal sender As Object, ByVal e As ISNet.WebUI.WebGrid.RowEventArgs) Handles WebGrid1.InitializeRow

    

        e.Row.Cells.GetNamedItem("ChkBox").ForceNoEdit = True


        If Session("UserID") = "LEE" Then


            e.Row.Cells.GetNamedItem("ChkBox").Text = "<INPUT type=""checkbox"" name=""ChkBox""> "


        End If


 Private Sub WebGrid1_PrepareDataBinding(ByVal sender As Object, ByVal e As ISNet.WebUI.WebGrid.DataSourceEventArgs) Handles WebGrid1.PrepareDataBinding

        If IsPostBack = False Then

            WebGrid1.RetrieveStructure()

        End If


        Call FormatSetting("WebGrid1")



        WebGrid1.RootTable.Columns.GetNamedItem("ChkBox").ColumnType = ColumnType.Custom


The checkboxes appear well but when i can not do the multiple selection with the checkboxes. When i click other checkbox,it will refresh and just check the new selected checkbox.

All times are GMT -5. The time now is 1:52 PM.
Previous Next