Hi to all,
I have this method, I'm trying to format in backcolor only column editable.
I setted all columns with ReadOnly = True, and then I setted only particular Column ReadOnly = False
Now I would test if I format cells by Name or by ReadOnly status, but in both ways, BackColor appears Yellow only when I doubleclick into editable cell.
I would show to user the editable columns with Yellow backcolor.
How can I do?
01.Private Sub UpdateCellFormatting(ByRef e As CellFormattingEventArgs)02. 03. Dim _IsEditable As Boolean = False04. 05. If _SelectedItem IsNot Nothing Then06. 07. If _SelectedItem.Personalizzazione = ListinoCliente.StringaListinoStandard Then08. 09. If e.CellElement.ColumnInfo.FieldName = "PrezzoListino" Then10. _IsEditable = True11. End If12. 13. Else14. 15. If e.CellElement.ColumnInfo.FieldName = "Sconto" Then16. _IsEditable = True17. End If18. 19. End If20. 21. End If22. 23. If _IsEditable Then24. e.CellElement.BackColor = Drawing.Color.Yellow25. Else26. e.CellElement.ResetValue(LightVisualElement.BackColorProperty, Telerik.WinControls.ValueResetFlags.Local)27. End If28. 29.End Sub