The Syncfusion native Blazor components library offers 70+ UI and Data Viz web controls that are responsive and lightweight for building modern web apps.
.NET PDF framework is a high-performance and comprehensive library used to create, read, merge, split, secure, edit, view, and review PDF files in C#/VB.NET.
I need to set the AllowSortColumns property for a nested table to false. How can I do this programmatically? None of the TableDescriptor properties for the nested table provide this option.
Thanks,
Anupama
STstanleyj Syncfusion Team January 4, 2006 06:53 AM UTC
Hi Anupama,
To turn off the sorting for the GGC, the AllowSortColumns must be set to false.
this.gridGroupingControl1.TableOptions.AllowSortColumns = false;
If you do not wish to sort nested tables alone, then cancel the click action in the TableControlCellClick for all table names other than the top level table.
private void gridGroupingControl1_TableControlCellClick(object sender, GridTableControlCellClickEventArgs e)
{
if(e.TableControl.TableDescriptor.Name != this.gridGroupingControl1.TableDescriptor.Name)
e.Inner.Cancel = true;
}
Best regards,
Stanley
ANAnupamaJanuary 4, 2006 08:03 AM UTC
Thanks. It worked another way. I set the following
this.gridGroupingControl1.TableDescriptor.TableOptions.AllowSortColumns = false;
this.gridGroupingControl1.TableOptions.AllowSortColumns = false;
The first line sets the option for nested tables and the second one for top level table.
Thanks.