VS BETA 2005, DataSource / DataMember properties

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



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

}

}


.