Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Finding a record in a grid
Message
From
17/05/2005 15:34:25
Dave Porter
Medical Systematics, Inc.
Merced, California, United States
 
 
To
17/05/2005 03:05:40
Jason Mesches
Ocean Systems Engineering Corporation
Carlsbad, California, United States
General information
Forum:
ASP.NET
Category:
The Mere Mortals .NET Framework
Miscellaneous
Thread ID:
01014618
Message ID:
01015063
Views:
30
Jason ! Thank You!
I haven't been able to get Kevin's suggestion to work yet, but I did get this to work out of the user's guide for synchronizing:
private void pckDx_ItemSelected(object sender, OakLeaf.MM.Main.Windows.Forms.mmPickerItemSelectedEventArgs e)
	{
		string PK = pckDx.Text;
		DataSet ds = this.oDx.GetCurrentDataSet();
		ds.Tables[0].DefaultView.ApplyDefaultSort = true;
		int Position = ds.Tables[0].DefaultView.Find(PK);
		this.BindingContext[ds, ds.Tables[0].TableName].Position = Position;
	}
I'm not sure why it works yet.. (I'm being too honest maybe!)
But it sure is great to finally have some success!!! Being a C# newbe, I think I have to make every conceivable mistake and get incomprehensible errors, etc, etc.
I may take Kevin's code and get rid of the picker and put in a text box and make it more like the mmPickListForm incremental search functionality.

BTW there is IMO a bug in the mmpicker. If you call up the picklist and where it says "Search in List" hit the tab key to jump down on the grid. At this point, a cell is selected not a row. Even if you arrow up and down a cell is selected. If you then select the Ok button you get error:
There is no row at position 0.

Dave
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform