AD
Administrator
Syncfusion Team
November 10, 2004 01:37 PM UTC
You could use a GridDropDouwnGridListControl (celltyp = "GridListControl") to get a running start at this.
What you could do is to set the column''s datasource, displaymember, and valuemember to be what you want so it picks up the foreign table.
To handle the displaying the partial list when the user types a few characters and click teh drop button, you could handle the CurrentCellShowingDropdown event, and there dynamically filter the list so it only shows the items that match the type values. To get teh typed value, you would use grid.CurrentCell.Renderer.ControlText within CurrentCellShowingDropdown. Here is a KB link the does something of this nature. (It does filter teh droplist, but does not use the ControlText.) http://www.syncfusion.com/Support/article.aspx?id=567
To handle the Enter key, try the grid.CurrentCellKeyDown event, and in it call grid.CurrentCell.ShowDropdown when the key is the enter key.