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

Remove the row header in a nested table

Thread ID:





32448 Aug 1,2005 09:25 AM UTC Aug 1,2005 10:31 AM UTC WinForms 3
Tags: GridControl
Prathima Venkobachar
Asked On August 1, 2005 09:25 AM UTC

Hi, When there is a record I want show ''+'' sign.when there are no child records I want to remove borders in nested table. How can I do this..? Thanks, Prathima

Administrator [Syncfusion]
Replied On August 1, 2005 09:35 AM UTC

I am not really clear on what you are requesting. But you can use the QueryCellStyleInfo to conditionally adjust style properties on cells. For example, here is code that you can use in the QueryCellStyleInfo event to hide the +/- on records that have no children.
// Prevent the +/- Icon for an empty row
if (e.TableCellIdentity.TableCellType == GridTableCellType.RecordPlusMinusCell)
	Record r = e.TableCellIdentity.DisplayElement.ParentRecord as Record;
	if (r != null && r.ParentTable.TableDescriptor.Name != DataSetBuilder.SALESTRANSACTION_LIST 		
						&& r.NestedTables.Count > 0 && r.NestedTables[0].ChildTable.GetFilteredRecordCount() == 0)
		e.Style.CellType = "Static";

Prathima Venkobachar
Replied On August 1, 2005 09:58 AM UTC

I am using the same code.''+'' sign is displaying only when there are child reocrds. The problem I have observed is,I am setting relationship to the assetid column in datable. This column is not added to the visible colunm list. I am seeing a horizontal thick line in the left corner for every rows. I want to remove that thick line . Thanks, Prathima

Administrator [Syncfusion]
Replied On August 1, 2005 10:31 AM UTC

Can you change this sample to show the problem you are having and upload? http://www.syncfusion.com/Support/user/uploads/GGC_NestedTables_3e5c6aad.zip


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.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

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