Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
BindingFlag
Message
 
 
To
All
General information
Forum:
ASP.NET
Category:
The Mere Mortals .NET Framework
Title:
BindingFlag
Miscellaneous
Thread ID:
01063105
Message ID:
01063105
Views:
40
I'm trying to create a user control that has an mmDataGrid in it. Since it is a user control, there is no access to the grid from outside the control, I created a BindingSource property and a MappingName property (see code below) that set the grid's corresponding properties.

But setting these properties does not seem to fill the grid in. Would setting the BindingFlag to false help here?


[
Category("Search Criteria"),
Description("Binding source of the grid."),
Browsable(true),
DefaultValue("")
]
public virtual string BindingSource
{
get { return _BindingSource; }
set
{
_BindingSource = value;
this.grdItems.BindingSource=value;
}
}
private string _BindingSource = "";
private System.Windows.Forms.DataGridTableStyle oTableStyle;

[
Category("Search Criteria"),
Description("Mapping Name of the TableStyle of the grid."),
Browsable(true),
DefaultValue("")
]
public virtual string MappingName
{
get { return _MappingName; }
set
{
_MappingName = value;
this.oTableStyle.MappingName=value;
}
}
private string _MappingName = "";
Rick Hodder
MCP Visual Foxpro
C#, VB.NET Developer
Independent Consultant
www.RickHodder.com
MyBlog
Next
Reply
Map
View

Click here to load this message in the networking platform