Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
195
ColumnDefination header text without export public property
posted

Hello there.

i am trying in xamarin c# to do the following scenario :

want to pass a List<NSObject> with string values to a Datasource (this works ok)

but i want to put the column definitions without having any property to export

example :

List<NSObject> foo = new List<NSObject>();

foo.Add(new NSString("a"));

foo.Add(new NSString("b"));

foo.Add(new NSString("c"));


IGGridViewDataSourceHelper datasource = new IGGridViewDataSourceHelper();

IGGridViewColumnDefinition colSubject = new IGGridViewColumnDefinition(); //(Without having any public property)
                colSubject.HeaderText = @"issue";
                datasource.ColumnDefinitions.Add(colSubject);


datasource.Data = foo.ToArray();
                _gridView.WeakDataSource = datasource;


_gridView.ReloadData();


this crash because in column definition don't have any property;

But i want to pass a array of values and the columns by hand without having any NSOBject Class that exports some properties.

Is this possible with any way?

Parents Reply Children
No Data