OnCheckedChanged event for checkbox
ASP.NET
1
Posts
1
Posters
0
Views
1
Watching
-
Hi, I want to add the OnCheckedChanged event to a checkbox, and then fire a method that colours all my rows in the datagrid. I am doing this in the RowDataBound method. I am not having any luck. Can anybody maybe help me. Here is my code so far:
Dim chkAllInsertInvoice As CheckBox = New CheckBox() chkAllInsertInvoice.ID = "chkAllInsertInvoice" chkAllInsertInvoice.AutoPostBack = True chkAllInsertInvoice.Attributes.Add("OnCheckedChanged", "ChangeAllBackgroundRow()") cell = New TableCell 'cell.Text = "All" cell.Controls.Add(chkAllInsertInvoice)