The Syncfusion native Blazor components library offers 70+ UI and Data Viz web controls that are responsive and lightweight for building modern web apps.
.NET PDF framework is a high-performance and comprehensive library used to create, read, merge, split, secure, edit, view, and review PDF files in C#/VB.NET.
Is there any way of determining whether a RowsHiding event is caused by a method call or from resizing a row height to 0? I want to prevent rows from being resized to 0, but still allow function calls to hide rows.
Thanks,
Sue
ADAdministrator Syncfusion Team August 5, 2005 09:56 AM UTC
You can handle the ResizingRows event and set a flag there to test later.
private bool sizingToZero = false;
private void gridControl1_ResizingRows(object sender, GridResizingRowsEventArgs e)
{
sizingToZero = e.Height == 0;
}
private void gridControl1_RowsHiding(object sender, GridRowColHidingEventArgs e)
{
Console.WriteLine(sizingToZero);
sizingToZero = false;
}