Hi!
I have a form with an UltraGrid wich columns have been set at design time, I also have a BindingSource assigned to the grid's DataSource. I create manually each column, and then Add a Range of this columns. The problem is when I assign the BindingSource to the DataSource, the collection of columns that I seted up in design view is replaced with the columns of the BindingSource. What I want is that the Grid keeps the columns I set and only assign the data that I am passing to it. Is any property that help my do this? (I guess it should exists a property like AutoGenerateColumns that can be set to false, but I cant find something like this... :S)
Greetings!
HOWTO:How can I define columns in the grid at Design-time and bind them at run-time so that some fields of the data are excluded from the grid?
Hi Mike!
I've proved the solution and it works ... :) now when I bind the data it doesn't appear new columns, however, I have created another columns besides the ones who exists in the binding source schema, and this columns disappear when I call the SetDataBinding function. The article you post says that all columns have to match the actual data source, do you know any way to keep all the columns of the schema, even the ones that doesn't have association with a field in the data source?