Well I figured something out for the time being that might be helpfull somewhat in removing this columns.
For now I am just doing a foreach statement to hide all columns that I don't want.
I do this by creating the columns I want manually in design time and binding them to the columns int he source from the BaseColumnName property.
This will show the columns you created first and then show all the columns that infragistic bring.
To select those I just created an int variable (in this example called columnsCount which would be the count of the rows before the data was bounded. (This would give me the # of columns I had created manually in design time).
Then I did the binding to the source and after that I would loop through the columns in the grid and would hide all those that had an index greater than the columnsCount minus 1 (since the index starts at 0).
Here is what I did in code.
** int routeColumns = gridName.Columns.Count;
gridName.DataSource = datasource;
gridName.DataBind();
foreach (UltraGridColumn column in gridName)
{
if (column.Index > columnLenght-1)
{
column.Hidden = true;
}
}**
I pretty much did a method for the foreach part so it looks cleaner.
** private void LimitColumns(ColumnsCollection routeColumns ,int columnLenght)
{
//Limiting Columns
foreach (UltraGridColumn column in routeColumns)
{
if (column.Index > columnLenght-1)
{
column.Hidden = true;
}
}**
So all I had to write is LimitColumns(gridName.Columns, routeColumns);
I said all this just because it works well on what I need for the time being until Inragistics decide to release next version.
My question is then, do you think this is an ok option performance wise?