Hello,
Is it possible to change all the XamDataGrid cells height dynamically in procedural code? If so, how could I do it?
Thanks.
I developed a CellHeight dependency property for a user control and used the below code to set the cell height:
Private Sub GridInfragistics_Loaded(ByVal sender As Object, ByVal e As System.Windows.RoutedEventArgs) Handles Me.Loaded
If CellHeight > 0 Then
grdTable.FieldSettings.Height = New FieldLength(CellHeight)
End If
End Sub
It seemed to be working in code. But the actural window which calls the user control threw object null exception for line 'grdTable.FieldSettings.Height = New FieldLength(CellHeight)' in the designer.
I am working on something esle at the moment. If I need more help about this in the future, I will let you know. In the meantime, if you can think what might cause the problem, please let me know.
Hi ,
I just wanted to know if you were able to solve your issue with the cell height based on Alex's suggestions or you still need help? Just let me know.
Thank you.
Sincerely,DimiDeveloper Support EngineerInfragistics, Inc.
Have you tried setting the CellMinHeight/CellHeight properties of the FieldSettings of the XamDataGrid?