VS BETA 2005, DataSource / DataMember properties
- From: "Zürcher See" <aquila@xxxxxxxxxxxxxxxx>
- Date: Mon, 30 May 2005 14:34:23 +0200
Is normal that the VS 2005 don't show any more the "DataSource" property in
the properties grid of the components (DataList, DataGrid ...)?
Also the "DataMember" property seem to be mystic, it works only with the
DataSourceControl controls?!?
If I set a typed "DataSet" as DataSource to a "DataGrid" the dropdown of the
"DataMember" property remains empty.
If I write an object that implements the IDataSource and IListSource
interfaces and set it as "DataSource" or to the "DataSourceID" property the
"DataMember" dropdown is still empty!?!
using System;
using System.Collections;
using System.ComponentModel;
using System.Web.UI;
using System.Web.UI.WebControls;
namespace DataSource
{
public class DataSourceTest : WebControl, IDataSource, IListSource
{
public DataSourceTest() { }
#region IDataSource Members
public event EventHandler DataSourceChanged;
public DataSourceView GetView(string viewName) { return null; }
public ICollection GetViewNames() { return new string[2] { "Test1",
"Test2" }; }
#endregion
#region IListSource Members
public bool ContainsListCollection { get { return true; } }
public IList GetList() { return new ArrayList(new string[2] { "Test1",
"Test2" }); }
#endregion
}
}
.
- Prev by Date: Enterprise Library for VS.NET 2005 BETA 2
- Next by Date: Re: team foundation server
- Previous by thread: Enterprise Library for VS.NET 2005 BETA 2
- Next by thread: Datamodule in VB.NET
- Index(es):