Posted 1 July 2019, 2:14 am EST
Hello,
The property AutogenerateColumns is for FlexGrid control. As TrueDbGrid is specially designed for working in bound mode so the Count property of C1DataColumnCollection Class has getter only because column count is defined by the number of columns in the Datasource.
If you want to show only limited columns, you can set the visibility of the extra columns to false.
//This code snippet is to show only 5 columns
For i As Integer = C1TrueDBGrid1.Columns.Count - 1 To 5 Step -1
C1TrueDBGrid1.Splits(0).DisplayColumns(i).Visible = False
Next
Please refer to the attached sample for better understanding.
Thanks and Regards,
Prabhat Sharma.
C1TrueDbColsLimitVBDemo.zip