A
Arcadius A.
Hello!
I'm trying to bind an array of custom objects to a ASP.NET DataGrid:
private void Page_Load(object sender, System.EventArgs e) {
DataGrid1= new DataGrid();
DataGrid1.DataSource=getAllShow();
Label1.Text+=getAllShow().Length; //This is OK!
//Controls.Add(DataGrid1);
}
The method getAllShow() returns an array of custom objects from a DB.
However Label1 shows a positive number (>2), the datagrid is not
displayed at all. My custom object has setter/getter properties for each
of its fields.
Thanks.
Arcadius.
I'm trying to bind an array of custom objects to a ASP.NET DataGrid:
private void Page_Load(object sender, System.EventArgs e) {
DataGrid1= new DataGrid();
DataGrid1.DataSource=getAllShow();
Label1.Text+=getAllShow().Length; //This is OK!
//Controls.Add(DataGrid1);
}
The method getAllShow() returns an array of custom objects from a DB.
However Label1 shows a positive number (>2), the datagrid is not
displayed at all. My custom object has setter/getter properties for each
of its fields.
Thanks.
Arcadius.