|
|
|
Databinding to multi-dimensional arrays
|
Total Hit (1803) |
Someone asked whether it was possible to data bind to a multi-dimensional array, and if so how. Below is a simple example that demonstrates how to do so, it is not a super inspired scenario but you get the idea. Note that in addition to handling arrays, the concept can be applied to any hierarchica
....Read More |
Rating
|
|
|
Dynamically Build an Array using ArrayList
|
Total Hit (1751) |
«Code LangId=4»Dim Values as New ArrayList()
Values.Add("Scott")
Values.Add("Fred")
Values.Add("Sam")
Dim Names as String()
Names = Values.ToArray(Type.GetType("System.String"))«/Code»
Note that because ArrayList implements ICollection -- you can do standard
foreach interation over it.
....Read More |
Rating
|
|
|
|