Hola como esta.
Mi pregunta es la siquiente tengo un listview Control(Telerik) y he activado un checkbox y por medio de ese checkbox quiero modificar el formato de una columna del listview es decir si el estado del checkbox esta en
On mostrara entregado en la columna estado del articulo si no, no entregado.
Aca una imagen los valores estan predefinidos para darme a entender mejor.
Tengo lo siquiente:
Si no ando mal en esta parte me cambiaria el texto de la columna segun el estado del checkbox.
Private Sub lvRegDePedido_ItemCheckedChanged(sender As Object, e As ListViewItemEventArgs) Handles lvRegDePedido.ItemCheckedChanged
If e.Item.CheckState = Enumerations.ToggleState.On Then
'Cambia texto a entregado
End If
End Sub
Tambien tengo lo siquiente que es como se le da formato a una celda en especifico.
Private Sub lvRegDePedido_CellFormatting(sender As Object, e As ListViewCellFormattingEventArgs) Handles lvRegDePedido.CellFormatting
If e.CellElement.Data.HeaderText = "Estado del articulo" Then
e.CellElement.Text = "Entregado"
End If
End Sub
Ahora mi pregunta es como uso el evento ItemCheckedChanged y CellFormatting para que por medio del cambio del checkedChange se le de formato a la celda.
Ya prove varias cosas como lo siquiente pero me lanza un error.
Private Sub lvRegDePedido_CellFormatting(sender As Object, e As ListViewCellFormattingEventArgs) Handles lvRegDePedido.CellFormatting
Dim item As New ListViewDataItem
If item.CheckState = Enumerations.ToggleState.On Then
If e.CellElement.Data.HeaderText = "Estado del articulo" Then
e.CellElement.Text = "Entregado"
End If
End If
End Sub
tal vez puedan ayudarme.
Saludos.