i need to create a list, or a datagrid to view in each row the following: a string, a random sequence of numbers that relate to that string in a way, a real number that is the result of using each random number as it appears... i've performed all the above but i displayed it using labels, which is impractical specially that i have to display 500 rows!
now i need may be to create a class with the features above, then create an array of this class containing 500 element, each is an instance of that class.
The problem is; i don't know how to create an array nor a list, i don't know how to bind data to a datagrid, no database is needed.
plz can u help me with this. it is so urgent...C# datagrid, list, array....Plz! it's urgent?
in System.Collection there is a class called ArrayList that has really easy add/delete methods.
ArrayList al = new ArrayList();
al.Add(object o);
o can be any kind of class.
and retrieving (data type) al[i];
Data type is the actual type of the object you added before hand.
No comments:
Post a Comment