G
Guest
Hi can anyone help me answer a few questions regarding arralists
1) If i add numerous intergers to an arraylist (i.e 4, 1 ,7, 23, 4, 2) how would i retrieve the INDEX of the value that is the smallest
2) When i set the datasource property of a datagrid to an arraylist containing the list of integers no values are shown in my datagrid. The correct number of rows seem to appear everytime but i just dont get the values showing!
When i changed the datasource to a different arraylist containg Dates, i do not get the dates displayed but instead i get a column that has the title 'length'. The value of this column is always 10. i presume this means the length of the date value (i.e 02/04/2004 = length of 10)!!! Once again the correct number of rows are shown but they contain the value 10 instead of the actual date!!!
Does anyone know what im doin wrong?
I add to the arraylist like
Dim Variable1 as Int32 = CInt(Textbox1.text
Arraylist.Add(Variable1
If anyone can help me on any of these answersit would be appreciated.
1) If i add numerous intergers to an arraylist (i.e 4, 1 ,7, 23, 4, 2) how would i retrieve the INDEX of the value that is the smallest
2) When i set the datasource property of a datagrid to an arraylist containing the list of integers no values are shown in my datagrid. The correct number of rows seem to appear everytime but i just dont get the values showing!
When i changed the datasource to a different arraylist containg Dates, i do not get the dates displayed but instead i get a column that has the title 'length'. The value of this column is always 10. i presume this means the length of the date value (i.e 02/04/2004 = length of 10)!!! Once again the correct number of rows are shown but they contain the value 10 instead of the actual date!!!
Does anyone know what im doin wrong?
I add to the arraylist like
Dim Variable1 as Int32 = CInt(Textbox1.text
Arraylist.Add(Variable1
If anyone can help me on any of these answersit would be appreciated.