In my gridview need support of different heights of rows. I solved it with the autosize property.
But now I have a side action that the header row and filter row also react to the autosize property.
Attached you can see this behaviour...
Here my code:
Grid.MasterView.TableFilteringRow.MinHeight = 40
Grid.AutoSizeRows = True
Is there a chance to separate data rows from filter and header row?
Regards,
Dimitri
I have logged it in our feedback portal by making this thread public. You can track its progress, subscribe for status changes and add your comments on the following link - feedback item.
I have also updated your Telerik points.
Currently, the possible solution that I can suggest is to specify the minimum height of the filter row element in the ViewCellFormatting event:
Private
Sub
RadGridView1_ViewRowFormatting(sender
As
Object
, e
As
Telerik.WinControls.UI.RowFormattingEventArgs) _
Handles
RadGridView1.ViewRowFormatting
If
TypeOf
e.RowElement.RowInfo
Is
GridViewFilteringRowInfo
Or
TypeOf
e.RowElement.RowInfo
Is
GridViewTableHeaderRowInfo
Then
e.RowElement.RowInfo.MinHeight = 40
e.RowElement.MinSize =
New Size(0, 40)
End
If
End
Sub
I hope this information helps. If you need any further assistance please don't hesitate to contact me.
Regards,
Dess | Tech Support Engineer, Sr.
Progress Telerik
Hello Dess,
thank you for your answer, but unfortunately your code doesn't work.
Here is my code:
Public Class Form1
Public Sub New()
InitializeComponent()
Grid.MasterView.TableFilteringRow.MinHeight = 40
Grid.AutoSizeRows = True
End Sub
Private Sub Grid_ViewRowFormatting(sender As Object, e As Telerik.WinControls.UI.RowFormattingEventArgs) Handles Grid.ViewRowFormatting
If TypeOf e.RowElement.RowInfo Is GridViewFilteringRowInfo Or TypeOf e.RowElement.RowInfo Is GridViewTableHeaderRowInfo Then
e.RowElement.RowInfo.MinHeight = 40
End If
End Sub
End Class
Attached I recorded the issue...
Regards,
Dimitri
Sub
New
()
InitializeComponent()
Me
.RadGridView1.AutoSizeRows =
True
Me
.RadGridView1.EnableFiltering =
True
End
Sub
Private
Sub
RadGridView1_ViewRowFormatting(sender
As
Object
, e
As
Telerik.WinControls.UI.RowFormattingEventArgs) _
Handles
RadGridView1.ViewRowFormatting
If
TypeOf
e.RowElement.RowInfo
Is
GridViewFilteringRowInfo
Or
TypeOf
e.RowElement.RowInfo
Is
GridViewTableHeaderRowInfo
Then
e.RowElement.RowInfo.MinHeight = 40
End
If
End
Sub