Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
MmPicker - data binding to a data view
Message
General information
Forum:
ASP.NET
Category:
The Mere Mortals .NET Framework
Environment versions
Environment:
C# 1.1
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
00989474
Message ID:
00989645
Views:
19
FWIW, I subclassed the mmPicker and made a get property that returns the ControlBindingsCollection of the text box in the mmPicker control. Not happy with the property name, but whatever.
using System.Windows.Forms;

using OakLeaf.MM.Main.Windows.Forms;

namespace Adc.Windows.Forms.Controls
{
	/// <summary>
	/// Summary description for AdcPicker.
	/// </summary>
	public class AdcPicker : mmPicker
	{
		public AdcPicker() : base()
		{
			//
			// TODO: Add constructor logic here
			//
		}

		// Can't just override DataBindings, so need a new name.
		public ControlBindingsCollection DataBindings2
		{
			get {return this.txtEntry.DataBindings;}
		}
	}
}
So now I can do this in code
this.pckHowReceived.DataBindings2[0].BindingManagerBase.Position = howReceivedPosition;
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform