What determines if an object is available in the Data Configuration Wizard? I have the following class in my BLL and I want to be able to bind controls to the data table I turned into a property but the only thing that shows up in the list of available data sources is the class name.
public class AoiNameBLL : SeedSizerDs
{
private aoi_nameTableAdapter _aoiAdapter = null;
protected aoi_nameTableAdapter Adapter
{
get
{
if (_aoiAdapter == null)
_aoiAdapter = new aoi_nameTableAdapter();
return _aoiAdapter;
}
}
private aoi_nameDataTable _aoiNameDt = null;
public aoi_nameDataTable AoiNameDt
{
get
{
if (_aoiNameDt == null)
_aoiNameDt = GetAoiName();
return _aoiNameDt;
}
}
/// <summary>
/// Get all records from AoiName table
/// </summary>
/// <returns>DataTable of all records</returns>
public aoi_nameDataTable GetAoiName()
{
return Adapter.GetAoiName();
}
}
Any push in the right direction would be great.
Thanks.
Are you referring to the ObjectDataSource? You specify the type of class to bind to in the wizard, then specify the methods for selecting, inserting, in the future screens of the wizard, or all of this can be specified in the properties window. Also, sometimes components don’t show up if the project hasn’t been built.
If that’s not what you were referring to, please let me know.