I have a grid where I have defined a band and columns at design time and I want to bind a datatable to this grid at runtime. I have the same number of columns in the grid and the daatable. I have set the BaseColumnName property to the columnnames in the datatable and set the Band key and tablename in the datatable as same. When i run the app I get data from the datatable in the corresponding columns in the grid as expected but it then adds all the columns in the datatable to the end once again. So I end up with 2 sets of columns. Any ideas as to what Im doing wrong and how to fix this ?
Thanks.
Do you have grid.DisplayLayout.AutogenerateColumns="False"?
Thanks, that was it!!