We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on : November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Multirow headers click issue

Thread ID:

Created:

Updated:

Platform:

Replies:

2757 Feb 12,2003 05:51 PM UTC Feb 17,2003 12:06 AM UTC WinForms 5
loading
Tags: GridControl
Mark Dykun
Asked On February 12, 2003 05:51 PM UTC

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

Administrator [Syncfusion]
Replied On February 12, 2003 11:13 PM UTC

In the CellDoubleClick event handler just check for e.RowIndex if it is greater than 3. Stefan

Mark Dykun
Replied On February 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

Administrator [Syncfusion]
Replied On 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?

Mark Dykun
Replied On February 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

Administrator [Syncfusion]
Replied On 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

CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

;