How do I bind an UltraGrid to a 2 dimensional array in c#?
Thanks.
Hello,
Thank you for contacting Infragistics Developer Support.
Why do you need to bind the grid to a two dimensional array? Binding to arrays which are not one dimensional is not supported. What you could is to create a DataTable from the array and use this DataTable instead, see the attached sample.
Please let me know if you have any additional questions.
I am using the grid in a bit of a different manner. Rather than each row representing a record, each cell represents a record. The user selects a cell. Therefore I have a class which take a list of values, in this case strings, and creates a 2d array with a specified width and height. I wan't to bind this to the UltraGrid, however I'd prefer not to use a Datatable if at all possible. Would a list of lists work? i.e. bind to an object like this: List<List<string>>?
I am just checking about the progress of this issue. Let me know if you need my further assistance on this issue.
Thank you for using Infragistics Components.