My setup: I'm loading data into a DataTable at server-side. In my app I'm binding the DataTable to a UltraGridDatasource where I've defined some of the columns that are in the DataTable. The rest of the columns are dynamic in the DataTable and the amount varies depending on the data. The UltraGridDatasource is then bound to an UltraGrid.
My problem: When I bind the UltraDataSource to the grid the column caption is the same as the key in the DataTable, even though I've set a different caption for the columns I've defined in the UltraGridDatasource. It seems that the UltraGridDatasource overrides settings and uses the DataTable keys as captions for all columns when the DataTable includes dynamic (undefined) data columns.
My question: How can I mix data so that the column captions, for defined columns in the UltraGridDatasource, are based on defined values and dynamic columns use the DataTable column / UltraGridDatasource column key as the caption?
Hi,
I just wanted to know if you were able to set the Caption following the Mike’s suggestions or you still need help? Just let me know.
Sincerely,DimiDeveloper Support EngineerInfragistics, Inc.
Mike's suggestions helped me on to the right track and I was able to find my problem.
In the end the problem was in my setup, while using the UltraDataSource with the grid I also bound the grid with a bindingsource that held my DataTable. The scheema in the UltraDataSource did not match the DataTable structure which caused the Caption problem.
I recreated and corrected the UltraDataSource scheema and after that the Captions started working in the expected manner.
Thanx for your help..