Click here to Skip to main content
15,908,173 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
Question1 Question: .Net Compact Framework 1.0 Pin
oforidankwa6-Sep-06 6:11
oforidankwa6-Sep-06 6:11 
QuestionVSA with .NET2 - IDE fails to load Pin
NigelAston6-Sep-06 5:25
NigelAston6-Sep-06 5:25 
QuestionSeeking Office Extension for dot net 2003 Pin
Charles Wolfe6-Sep-06 3:07
Charles Wolfe6-Sep-06 3:07 
QuestionToolStrip Docking Events Pin
_NielsB6-Sep-06 3:05
_NielsB6-Sep-06 3:05 
AnswerRe: ToolStrip Docking Events Pin
_NielsB7-Sep-06 3:35
_NielsB7-Sep-06 3:35 
QuestionHelp - Systems, Analysis & Design Pin
Candylc5-Sep-06 18:20
Candylc5-Sep-06 18:20 
QuestionADO.NET create a view of multiple tables (i.e. join) Pin
jpietari5-Sep-06 13:06
jpietari5-Sep-06 13:06 
QuestionShow table fields in drop-down list while in design view (like datagridview) Pin
jpietari5-Sep-06 12:58
jpietari5-Sep-06 12:58 
I want to create a "report" user control, which acts similar to a DataGridView. The "ReportView" class consists of a datasource, datamember and a collection of columns. The issue is that the columns need to reference the datamember of the "ReportView" object to be able to show a drop-down list of fields in the designer dialog box. How do I do this?

Public Class ReportViewColumn
<system.componentmodel.editor("system.windows.forms.design.datamemberfieldeditor, system.design",="" _
="" "system.drawing.design.uitypeeditor,="" system.drawing")=""> _
Public Property DataPropertyName() As String
Get
Return gstrDataField
End Get
Set(ByVal value As String)
gstrDataField = value
End Set
End Property
End Class



<designerattribute(gettype(reportviewdesigner))> _
Public Class ReportView
Inherits System.Windows.Forms.Control

<editor(gettype(buttoncollectioneditor), gettype(uitypeeditor))=""> _
<designerserializationvisibility(designerserializationvisibility.content)> _
Public Property Columns() As ReportViewColumnCollection
Get
Return gobjColumns
End Get
Set(ByVal value As ReportViewColumnCollection)
gobjColumns = value
End Set
End Property

<typeconverter("system.windows.forms.design.datasourceconverter, system.design")=""> _
<category("data")> _
<defaultvalue(ctype(nothing, object))=""> _
Public Property DataSource() As Object
Get
Return source
End Get
Set(ByVal value As Object)
source = value

If (TypeOf source Is DataSet) And DataMember > "" Then
'Call bind()
End If
End Set
End Property

<category("data"), bindable(false)=""> _
<editor("system.windows.forms.design.datamemberlisteditor, system.design",="" "system.drawing.design.uitypeeditor,="" system.drawing")=""> _
<refreshproperties(refreshproperties.all)> _
<defaultvalue("")> _
Public Property DataMember() As String
Get
Return data
End Get
Set(ByVal value As String)
data = value

If (TypeOf source Is DataSet) And DataMember > "" Then
'Call bind()
End If
End Set
End Property
#End Region

End Class
Questioninhibit garbage collection Pin
mikewinny5-Sep-06 10:05
mikewinny5-Sep-06 10:05 
AnswerRe: inhibit garbage collection Pin
Scott Dorman6-Sep-06 21:39
professionalScott Dorman6-Sep-06 21:39 
QuestionInstalling VS 2005 in XP Home edition. Pin
nagarajuepuri5-Sep-06 8:29
nagarajuepuri5-Sep-06 8:29 
AnswerRe: Installing VS 2005 in XP Home edition. Pin
Jun Du5-Sep-06 9:37
Jun Du5-Sep-06 9:37 
AnswerRe: Installing VS 2005 in XP Home edition. Pin
Kevin McFarlane6-Sep-06 4:29
Kevin McFarlane6-Sep-06 4:29 
QuestionSaving Settings Pin
mr_lasseter5-Sep-06 3:42
mr_lasseter5-Sep-06 3:42 
AnswerRe: Saving Settings Pin
Jun Du5-Sep-06 9:35
Jun Du5-Sep-06 9:35 
AnswerRe: Saving Settings Pin
Sebastien Lachance7-Sep-06 4:42
Sebastien Lachance7-Sep-06 4:42 
QuestionHow to integrate msxml 6 with my installer? Pin
code4jigar4-Sep-06 19:41
code4jigar4-Sep-06 19:41 
Questionrelation beetwen database classes in .net Pin
hamidreza esmaeily4-Sep-06 18:59
hamidreza esmaeily4-Sep-06 18:59 
QuestionUnexpected two step installation from msi Pin
Gutec4-Sep-06 12:35
Gutec4-Sep-06 12:35 
QuestionTransfer data form webpage to other application Pin
indiakahero4-Sep-06 2:11
indiakahero4-Sep-06 2:11 
QuestionTransfer data form webpage to other application Pin
indiakahero4-Sep-06 2:11
indiakahero4-Sep-06 2:11 
QuestionSetup and Deployment project Pin
Tal S.2-Sep-06 22:29
Tal S.2-Sep-06 22:29 
AnswerRe: Setup and Deployment project Pin
Mike Dimmick3-Sep-06 11:36
Mike Dimmick3-Sep-06 11:36 
QuestionRe: Setup and Deployment project Pin
Tal S.4-Sep-06 21:32
Tal S.4-Sep-06 21:32 
QuestionHow to hook file handling routines. Pin
sundar1561-Sep-06 7:02
sundar1561-Sep-06 7:02 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.