Webgrid 7 checkbox at specified row

2 replies. Last post: August 17, 2010 11:13 PM by xin8
Tags :
  • New Discussion
  • New Question
  • New Product Feedback
xin8 Member

Hi,

 

I would like to add checkbox to rows in a table which has the main data.

previously, the code in InitializeRow event can function well.

 

 Private Sub WebGrid1_InitializeRow(ByVal sender As Object, ByVal e As ISNet.WebUI.WebGrid.RowEventArgs) Handles WebGrid1.InitializeRow
    
    If (e.Row.Cells.GetNamedItem("a_bid").Value = e.Row.Cells.GetNamedItem("bid").Value) Then
            e.Row.Cells.GetNamedItem("Tick").Text = "<INPUT type='checkbox' Id='" & e.Row.Cells.GetNamedItem("bid").Value & "' name='" & e.Row.Cells.GetNamedItem("bid").Value & "'  onclick=ChkClick('" & e.Row.Cells.GetNamedItem("bid").Value & "') >"
         End If
    End Sub

 

but after i upgraded to webgrid 7, the code doesn't function well.

 

The checkbox column will show

<INPUT type='checkbox' Id='1234' name='1234' onclick=ChkClick('1234') >

instead of working like previously which shows checkbox in specified rows.

 

Do you have any ideas on the cause to the failure of the output?

 

Waiting for your kind reply.

 

Thank you.

 

xin8

 

All times are GMT -5. The time now is 1:08 AM.
Previous Next