BoldSignA modern eSignature application with affordable pricing. Sign up today for unlimited document usage!
<Window.Resources>
<Style TargetType="Syncfusion:FilterRowControl">
<Setter Property="Background" Value="LightBlue"/>
</Style>
</Window.Resources> |
<Setter Property="Height" Value="100"/> </Style>
using Syncfusion.UI.Xaml.Grid;
using Syncfusion.UI.Xaml.Grid.Helpers;
this.datagrid.QueryRowHeight += datagrid_QueryRowHeight;
void datagrid_QueryRowHeight(object sender, QueryRowHeightEventArgs e)
{
if (this.AssociatedObject.IsFilterRowIndex(e.RowIndex))
{
e.Height = 60;
e.Handled = true;
}
} |
using Syncfusion.UI.Xaml.Grid;
using Syncfusion.UI.Xaml.Grid.Helpers;
public class MyDataGrid: SfDataGrid
{
public MyDataGrid()
{
QueryRowHeight += PfDataGrid_QueryRowHeight;
}
void PfDataGrid_QueryRowHeight(object sender, QueryRowHeightEventArgs e) { if (this.datagrid.IsFilterRowIndex(e.RowIndex)) //cannot resolve datagrid
{
}
if (datagrid.IsFilterRowIndex(e.RowIndex)) //cannot resolve datagrid
{
}
if (this.GetDataGrid().IsFilterRowIndex(e.RowIndex)) //GetDataGrid() always null
{
}
}
}
Regards,Vitalii