alanmusician
Programmer
I have a data source which is declared like so:
It is (sort of) shadowing a data table called floating table like so:
This is done for paging and a few other things, and works great as a datasource of a bindingsource set at runtime.
I have a class called DocketBrowseTable that inherits from KPDataTable that sets up the datatable from a stored procedure. Again this works great at runtime like so:
What I want to be able to do is set the datasource of a bindingsource in the designer to DocketBrowseTable. This would get columns for grids, etc. I would like to know what I need to add to my DocketBrowseTable class or my KPDataTable class to get this working.
Code:
public class KPDataTable : IBindingList, ITypedList
It is (sort of) shadowing a data table called floating table like so:
Code:
public object this[int index]
{
get
{
if (index >= this._totalRows)
{
throw new ArgumentOutOfRangeException("index", index, "Invalid index");
}
return (this._floatingTable.Rows[index]);
}
set
{
throw new NotSupportedException();
}
}
I have a class called DocketBrowseTable that inherits from KPDataTable that sets up the datatable from a stored procedure. Again this works great at runtime like so:
Code:
browseSource = new DocketBrowseTable();
uxDefaultSource.DataSource = browseSource;
What I want to be able to do is set the datasource of a bindingsource in the designer to DocketBrowseTable. This would get columns for grids, etc. I would like to know what I need to add to my DocketBrowseTable class or my KPDataTable class to get this working.