I am creating a custom control with a gridview on it along with a databindingsource and a databindingnavigator. I have created a custom property datasource, but am stuck on how to add the "new" feature to it so that it can find/create a datasource......
This is what I have so far.
VB Code:
<Category("Data"), _ Description("Indicates the Source of the Control"), _ RefreshProperties(RefreshProperties.Repaint), AttributeProvider(GetType(IListSource))> _ Public Property DataSource() As Object Get Return (Me.dgvEditSearchPanel.DataSource) End Get Set(ByVal value As Object) Me.dgvEditSearchPanel.DataSource = value End Set End Property <Category("Data"), _ Description("Indicates a sub-list of the data source to show in the control.")> _ Public Property Datamember() As String Get Return Me.dgvEditSearchPanel.DataMember End Get Set(ByVal value As String) Me.dgvEditSearchPanel.DataMember = value End Set End Property
Thank you!
D




Reply With Quote