I want to bind an UltraGrid to a generic list of strings using List<string> (c# generic class).
I've set up a BindingSource.DataSource to my List<string> object, but when I hook it up and run my program, the UltraGrid shows a single column bound to the Length property showing the Lengths of my strings instead of showing me the actual list of string data.
If I set a System.Windows.Forms.Listbox or ComboBox to use the same BindingSource, I get the expected list of strings shown.
Why can't an UltraGrid do the same thing? I couldn't find any help on this seemingly simple thing.
Hi,
I just tried this out and it works just fine for me:
private void Form1_Load(object sender, EventArgs e) { //List<int> list = new List<int>(); MyList list = new MyList(); list.Add(1); list.Add(2); list.Add(3); this.ultraGrid1.SetDataBinding(list, null); } public class MyList : List<int> { }
I've tried 9.2 as well but didn't fixed our issue, i forgot to mention something by the way.
If you pass in a simple List<int> type as the datasource it works just fine, but if instead you create a class that derive from List<int>, for example:public class RolesCollection : List<int>{ }
and you pass in a instance of that class instead, it wont create the 'Value' column like it did for the List<int> type...
Could you confirm this?
I'm not sure what version this was fixed in, but I just tried it in the oldest currently-supported version, which is v9.2 and it works fine.
I recommend that you get the latest service release for the version you are using and see if that helps.
How to get the latest service release - Infragistics Community
If that does not work, then you will probably need to upgrade. You might want to download a trial version of the latest release (v10.1) and try it out.
Have you seen any fix to this issue?
We're using the 2008 vol. 2 in our case and i still don't know how to fix this....
Tnx!
No, there are no hot fixes for v8.1, yet. So you should Submit an incident to Infragistics Developer Support