I can use arraylist variable to fill datagrid?
-
I can use arraylist variable to fill datagrid?. This is my question. Because is not working. example. dim t as new arraylist t.add(one) t.add(two) t.add(three) datagrid1.datasource = t This code must be works? Johnny Lizardo
Well, the
DataGrid.DataSource
property can take objects that implement theIList
interface, so anArrayList
should be fine. Can you post the actual code and exception message you're getting? -
Well, the
DataGrid.DataSource
property can take objects that implement theIList
interface, so anArrayList
should be fine. Can you post the actual code and exception message you're getting? -
Look. Right now I'm not in my machine. For this reason i can't send to you all code with exception. But The code i'm already posted don't help you? Johnny
Well, I can tell what you're generally trying to do, but it's not clear exactly where you are getting an error. If you would like to post the details of the error you're getting (and any additional code that would help to make sense of it), I'd be in a better position to help.