Hello,
I need to apply some custom formatting to cells in my grid. Based on the documentation, I have added code to the RowFormatting event of the grid. This works fine as long as there are only a few rows in the grid. Once a get a decent amount of data (60+ rows), then grid scrolls very slowly. I have tried to set the EnableFastScrolling property to true, but the grid still has poor performance when scrolling with the keyboard (up/down keys).
My code in the RowFormatting event is very simple, so I'm surprised that it would cause the performance to degrade so severly. Is there another way to handle this? I tried applying formatting outside of the RowFormatting event, but the CellElement property of the cell is Nothing, so I can't access any of it's properties.
Thanks,
Sean
I need to apply some custom formatting to cells in my grid. Based on the documentation, I have added code to the RowFormatting event of the grid. This works fine as long as there are only a few rows in the grid. Once a get a decent amount of data (60+ rows), then grid scrolls very slowly. I have tried to set the EnableFastScrolling property to true, but the grid still has poor performance when scrolling with the keyboard (up/down keys).
My code in the RowFormatting event is very simple, so I'm surprised that it would cause the performance to degrade so severly. Is there another way to handle this? I tried applying formatting outside of the RowFormatting event, but the CellElement property of the cell is Nothing, so I can't access any of it's properties.
Private Sub rgvLines_RowFormatting(ByVal sender As Object, ByVal e As Telerik.WinControls.UI.RowFormattingEventArgs) Handles rgvLines.RowFormatting |
Dim approval As String = Nothing |
approval = e.RowElement.RowInfo.Cells("APPROVAL").Value.ToString() |
If approval = "UNK" Then |
e.RowElement.RowInfo.Cells("COMM").CellElement.Visibility = ElementVisibility.Hidden |
End If |
End Sub |
Thanks,
Sean