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.
Unfortunately, activation email could not send to your email. Please try again.

How to create a custom display of details?

Thread ID:





68914 Oct 4,2007 06:00 PM Oct 5,2007 05:45 PM Windows Forms 3
Tags: Grouping
Asked On October 4, 2007 06:00 PM


I'm trying to embed custom detail views into a grid. The idea is that the user can click on a row to pull down a custom detail view under the row. The view is not a table and many contain other user controls. Is this possible? Can you please provide some sample codes? Thank you!

haneefm [Syncfusion]
Replied On October 4, 2007 07:26 PM

Hi Stanley,

This can be achieved be setting the TableOptions.ShowRecordPreviewRow property for the grid to True. Below is a code snippet.

this.gridGroupingControl1.TableOptions.ShowRecordPreviewRow = true;

Please refer to the attached sample for implementation and let me know if this helps.

Best regards,

Replied On October 5, 2007 02:06 PM

Hi Haneef:

Thank you for your reply. Let me explain our scenario further - what we want is to display a list of information, let's say, orders, in a table. And when user click on an order, the row will be expanded to show more details of the order, plus some UI componnets that user can act on current order in-place. So my question is how to manually control the preview panel - e.g. layout, adding more controls, handling events, etc. And is this preview panel can be expanded/collapsed per row - some rows are expanded, while some rows are collapsed? Thank you


haneefm [Syncfusion]
Replied On October 5, 2007 05:45 PM

Hi Stanley,

By default, the GridGroupingControl show preview rows for all records in a grid. If you want to show current record with previewrows only (hide remainig preview rows in table), then you need to add a custom GridEngine as in this sample. Below is a sample that shows this task.


Please try the sample and let me know if this helps.

Best regards,


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.

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.