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.
how would you determine if the row clicked on was a header row. I have created a multirow header grid. If I click on the first row it does not fire the cellDoubleClick event which is correct behavour, however if I click on row 2 or 3, it does fire the event eventhough these rows are header rows. I would like to filter this out.
Any suggestions
ADAdministrator Syncfusion Team February 12, 2003 11:13 PM UTC
In the CellDoubleClick event handler just check for e.RowIndex if it is greater than 3.
Stefan
MDMark DykunFebruary 13, 2003 11:57 PM UTC
I create the headers based on metadata at runtime and cannot account for the number of header rows. This solution is extremely ridgid and does not allow for the flexability I need. Is there another way to tell if the row contains header cells?
>
> In the CellDoubleClick event handler just check for e.RowIndex if it is greater than 3.
>
> Stefan
ADAdministrator Syncfusion Team February 14, 2003 09:06 AM UTC
In CellDoubleClick, instead of checking for 2 or 3, check for the Model.Rows.HeaderCount property. This is the property that should have been set when you created the grid from your metadata and specified a certain number of rows to be header rows.
Will this work for you?
MDMark DykunFebruary 16, 2003 11:00 PM UTC
> In CellDoubleClick, instead of checking for 2 or 3, check for the Model.Rows.HeaderCount property. This is the property that should have been set when you created the grid from your metadata and specified a certain number of rows to be header rows.
>
> Will this work for you?
>
Seems to return the propert 0 based end row. I.e if I have 3 rows then 2 is returned. Is this a correct assumption.
Mark
ADAdministrator Syncfusion Team February 17, 2003 12:06 AM UTC
That's correct. The meaning is more like "extra" row header in a addition to the default header at row 0.
Stefan