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. Image for the cookie policy date

How to create drill down with tabcontroladv in Grid

Hi bro,
I create a desktop application with syncfusion.
Now i want to show detail a product in Grid control.
When click a product it will show detail(Expanded this record). How to i can do it??
I attach a file to description my mean.
i hope to have a way to create.

Thanks bro

Attachment: Capture_49ba0629.rar

4 Replies

MS Maniratheenam Sehar Syncfusion Team November 4, 2014 09:59 AM UTC

Hi Giang,

 

Thank you for using Syncfusion Products.

 

Query:

How to create drill down with tabcontroladv in Grid

Inorder to obtain product details while expanding, we suggest you to make use of GridGrouping Control to achieve your desired solution easily.

You can use the following code to expand and collapse the grid table records.

 

//To expand the CurrentRecord :

this.gridGroupingControl1.Table.CurrentRecord.IsExpanded = true;

 

//To expand a selected record :

this.gridGroupingControl1.Table.SelectedRecords[0].Record.IsExpanded = true;

 

//To expand the specific Record :

this.gridGroupingControl1.Table.Records[index].IsExpanded = true;

 

//To expand all the records in a table

this.gridGroupingControl1.Table.ExpandAllRecords();

 

//To Collapse all the records in a grid.

this.gridGroupingControl1.Table.CollapseAllRecords();

 

Hence, we've added a sample for your better convenience.

 

 

Please let us know, if you any concerns.

 

Regards,

ManiRatheenam S


Attachment: Portfolio_Grid_Demo_11d9541.zip


GI giang replied to Maniratheenam Sehar November 4, 2014 10:07 AM UTC

Hi Giang,

 

Thank you for using Syncfusion Products.

 

Query:

How to create drill down with tabcontroladv in Grid

Inorder to obtain product details while expanding, we suggest you to make use of GridGrouping Control to achieve your desired solution easily.

You can use the following code to expand and collapse the grid table records.

 

//To expand the CurrentRecord :

this.gridGroupingControl1.Table.CurrentRecord.IsExpanded = true;

 

//To expand a selected record :

this.gridGroupingControl1.Table.SelectedRecords[0].Record.IsExpanded = true;

 

//To expand the specific Record :

this.gridGroupingControl1.Table.Records[index].IsExpanded = true;

 

//To expand all the records in a table

this.gridGroupingControl1.Table.ExpandAllRecords();

 

//To Collapse all the records in a grid.

this.gridGroupingControl1.Table.CollapseAllRecords();

 

Hence, we've added a sample for your better convenience.

 

 

Please let us know, if you any concerns.

 

Regards,

ManiRatheenam S


Attachment: Portfolio_Grid_Demo_11d9541.zip

Hi Maniratheenam Sehar,

But i need to add a TabControlAdv to DataRowView of Grid? To show more detail of product.
Sorry for my english.

Thanks


GI giang November 4, 2014 10:17 AM UTC

Hi Bro
Your attach missing MetroForm class.  
I cannot run it
Thanks


MS Maniratheenam Sehar Syncfusion Team November 4, 2014 01:00 PM UTC

Hi Giang,

 

Thanks for your update.

 

Sorry for the inconvenience caused. Previous update was concerned to your mentioned query.  We regret, if our solution is unrelated to your given query.

Thus, ignore our previous update and kindly, make use of the below,

 

Query:

need to add a TabControlAdv to DataRowView of Grid?

Inorder to add TabControlAdv, following suggestion is given below,

 

Just declare a control in the form and assign  the Control as celltype for a cell like below

          

            EditControl editControl = new EditControl();

      this.gridControl1[2, 2].CellType = GridCellTypeName.Control;

      this.gridControl1[2, 2].Control = editControl;

 

In this you can set your own custom control instead of EditControl and can assign it in the same way.

 

Moreover, following attached demo will guide you to create a custom cell control that places a drop-down form or a user control in a cell.

 

 

Please let us know, if any further concerns.

 

Regards,

ManiRatheenam S


Attachment: Drop_Down_Cell_Demo_79dd4efa.zip

Loader.
Up arrow icon