Hey..
This looks like a simple issue but in my ultracalc manager, the tree on the left has a hierarchy as Controls->gridname->BindingList`1. I want to replace the the title "BindingList`1" with something more meaningful.
BindingList is the datasource that the ultrawingrid is bound to. Is there any wany to rename it?
Thanks.
Hi,
CalcManager doesn't currently support renaming the references, so there's no way to do this on that end.
The name you are seeing there isn't neccessarily the name of the DataSource, though, it's the Key of the root band in the grid. So you might be able to change your data source so that the root TableName returns something more meaningful. Whether or not this is possible and how you do it depends on the data source you are using.
Yes you are right. The node value is the key of the 0th band. However the name of my datasource is "PositionList". I was hoping that if it is possible to make it atleast this than "BindingList`1".
Following is the code to bind.
Grid.DataSource = PositionList;
The key of the 0th band is BindingList`1. While the 1st band is "TradeList", which is another binding list object inside my Position object. The 1st band key is correct while 0th band key is not. I can not change my datasource from Binding list to something else...is it possible to do something about it so that it is displayed correctly in the formula builder.
No, there's no way to change this in the FormulaBuilder. You should Submit a feature request to Infragistics.
I think there must be a way to provide a name to the root level band in a BindingList, but I'm afraid I don't know what that way is - and maybe I am wrong. The grid just gets the name of the band form the BindingManager.
Perhaps you could use an UltraDataSource in on-demand mode as an intermediary between your real data source and the grid. That way you could name the bands whatever you want.
EDIT: Um... this just occurred to me - have you tried setting the band.Header.Caption propety on the grid band? I wonder if the FormulaBuilder would pick that up instead of the key.