AD
Administrator
Syncfusion Team
July 10, 2006 07:21 PM UTC
Hi Roman,
We are not able to find any similar method in our source code of our versions. We hope the method referring to is a user defined method.
The following code snippet shows a method to insert columns in the gridcontrol
grid.Model.Cols.InsertRange(int InsertAt, int count)
For GridDataBoundGrid :
public GridBoundColumn AddColumn(string MappingName, string HeaderText)
{
GridBoundColumn gbc = new GridBoundColumn();
gbc.MappingName = MappingName;
gbc.HeaderText = HeaderText;
gridDataBoundGrid1.GridBoundColumns.Add(gbc);
return gbc;
}
Best regards,
Madhan
RK
Roman Konstnkevitch
July 12, 2006 05:47 PM UTC
Thanks. Is ther any simular method in GridControl?
AD
Administrator
Syncfusion Team
July 13, 2006 09:22 AM UTC
In a GridControl, you can use grid.Model.Cols.InsertRange to insert columns. To add columns on the right side, you can just increment grid.ColCount.