Snapsections
Snapsections
How do we go about adding snapsections, now that SoftPro.UI is gone?
Re: Snapsections
To create a snapsection, you would inherit from SnapSection (SoftPro.OrderTracking.Controls).
The most common overrides you would use in a snapsection are
OnResolveDataSource() - This is used to set the datasource for the snapsection
OnBindControls() - This is where you would bind the controls to the datasource
For example,
this.DataSource will point to the BindingSource returned by OnResolveDataSource()
The most common overrides you would use in a snapsection are
OnResolveDataSource() - This is used to set the datasource for the snapsection
OnBindControls() - This is where you would bind the controls to the datasource
For example,
Code: Select all
protected override void OnBindControls()
{
_name.Bind(this.DataSource, "Name");
base.OnBindControls();
}
Pradeepa Chandramohan
Software Engineer
SoftPro
Software Engineer
SoftPro
Re: Snapsections
Once I have the snapsection compiled, is the registration process different from v2?
I added the snapsection to the MyScreens table, added the assembly to the SoftPro.snapsections file and registered the assembly with spregpkg.exe. Yet, when I load the screen, the snapsection doesn't loaded. No errors either.
I added the snapsection to the MyScreens table, added the assembly to the SoftPro.snapsections file and registered the assembly with spregpkg.exe. Yet, when I load the screen, the snapsection doesn't loaded. No errors either.
Re: Snapsections
Anyone know what I'm doing wrong?
Re: Snapsections
Figured it out. I was missing the "[assembly: SnapSectionAssembly()]" attribute on the assembly.