ADAdministrator Syncfusion Team August 1, 2005 04:35 AM
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.ChildTable.GetFilteredRecordCount() == 0)
e.Style.CellType = "Static";
PVPrathima Venkobachar August 1, 2005 04:58 AM
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 .
ADAdministrator Syncfusion Team August 1, 2005 05:31 AM
Can you change this sample to show the problem you are having and upload?