This question is locked. New answers and comments are not allowed.
Good Afternoon Team Teleri
In my page of SilverLigth, I add and remove any columns in runtime by programming. :
but How do I define the font and font properties (fontname, fontsize, etc) to new column?
Thanks for any help.
Juan Pablo Díaz
Bogotá D.C. Colombia
In my page of SilverLigth, I add and remove any columns in runtime by programming. :
| Private Sub adicionarColumnas(ByVal grilla As Telerik.Windows.Controls.RadGridView, ByVal nombreColumna As String, _ |
| ByVal encabezado As String, ByVal ancho As Integer) |
| Dim m, d As String, p As Integer |
| m = "adicionarColumnas)-" : d = "Entra" : p = 0 |
| Try |
| 'MessageBox.Show(o & vbCrLf & m & p & d, "", MessageBoxButton.OK) |
| Dim columna As New Telerik.Windows.Controls.GridViewDataColumn |
| p = 40 : columna.UniqueName = nombreColumna |
| p = 50 : columna.Header = encabezado |
| p = 100 : columna.IsVisible = True |
| p = 125 : columna.IsReadOnly = True |
| p = 128 : columna.Width = ancho |
| p = 150 : columna.DataMemberBinding = New System.Windows.Data.Binding(nombreColumna) |
| p = 160 : grilla.Columns.Add(columna) |
| Catch ex As Exception |
| MessageBox.Show("Revisar: " & o & vbCrLf & m & p & vbCrLf & ex.Message) |
| End Try |
| d = ") Sale " |
| 'p = 999 : MessageBox.Show(o & vbCrLf & m & p & d) |
| End Sub |
Thanks for any help.
Juan Pablo Díaz
Bogotá D.C. Colombia