Hi.
I'm using sfDataGrid and GridComboBoxColumn controls. There are 2 problems with combo box controls. Sample code:
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private void Form1_Load(object sender, EventArgs e)
{
sfDataGrid1.AutoGenerateColumns = false;
DataTable dt = new DataTable();
dt.Columns.Add("colText", typeof(string));
dt.Columns.Add("colCombo", typeof(string));
foreach (string s in dataText)
{
System.Data.DataRow row = dt.NewRow();
row[0] = s;
row[1] = "Aaaaa";
dt.Rows.Add(row);
}
sfDataGrid1.DataSource = dt;
DataTable combodt = new DataTable();
combodt.Columns.Add("colCombo", typeof(string));
foreach (string s in comboList)
{
System.Data.DataRow row = combodt.NewRow();
row[0] = s;
combodt.Rows.Add(row);
}
Syncfusion.WinForms.DataGrid.GridTextColumn col1 = new Syncfusion.WinForms.DataGrid.GridTextColumn();
col1.MappingName = "colText";
sfDataGrid1.Columns.Add(col1);
Syncfusion.WinForms.DataGrid.GridComboBoxColumn col2 = new Syncfusion.WinForms.DataGrid.GridComboBoxColumn();
col2.MappingName = "colCombo";
col2.DataSource = combodt;
col2.DisplayMember = "colCombo";
col2.ValueMember = "colCombo";
col2.StaysOpenOnEdit = true;
col2.DropDownStyle = Syncfusion.WinForms.ListView.Enums.DropDownStyle.DropDownList;
sfDataGrid1.Columns.Add(col2);
sfDataGrid1.Focus();
sfDataGrid1.MoveToCurrentCell(new Syncfusion.WinForms.GridCommon.ScrollAxis.RowColumnIndex(1, 0));
}
private string[] dataText = { "test1", "test2", "test3" };
private string[] comboList = { "Aaaaa", "Baaab", "Babbb", "Bbbbe", "Ttttt", "Uuuuu", "Vvvvv", "Wwwww", "Xxxxx", "Yyyyy", "Zzzzz" };
}
Problem 1:
When user is using keyboard to select last item from dropdown list (he's pressing "z" key), the dropdown is selecting this item, but scroll bar is not moving to this item (video 1).
Problem 2:
Let's change col2.DropDownStyle to Syncfusion.WinForms.ListView.Enums.DropDownStyle.DropDown and add after that these lines to the code:
col2.AutoCompleteMode = AutoCompleteMode.SuggestAppend;
col2.AutoSuggestMode = Syncfusion.WinForms.ListView.Enums.AutoCompleteSuggestMode.StartsWith;
When user is using keyboard to select "Bbbbe" item (he's pressing "bbb"), the output in dropdown is "Ab" (video 2).
Regards,
Chris
|
Queries |
Solutions |
|
When user is using keyboard to select last item from dropdown list (he's pressing "z" key), the dropdown is selecting this item, but scroll bar is not moving to this item (video 1). |
We have created bug report for the reported issue “SelectedItem not scrolled into view in dropdown list of SfComboBox”. We will fix this issue and include in our upcoming Essential Studio 2021 Volume 2 SP release which is expected on mid of August 2021. You can track the status of this report through the following feedback link, Feedback link: https://www.syncfusion.com/feedback/27362/selecteditem-not-scrolled-into-view-in-dropdown-list-of-sfcombobox Note: The provided feedback link is private, and you need to login to view this feedback. |
|
my records are instances of a class with many properties, only some of which I display in the grid. Is it possible for me query the value of a non-displayed property in a record and use this data to initiate certain cell modifications?
|
We have checked the reported issue “The SuggestAppend and autoComplete modes now working properly in SfComboBox.” and this is known issue from our end and it seems to be fixed in Syncfusion 19.2.0.48. You could avoid this issue by update the Syncfusion product Version as 19.2.0.48 or latest. Please refer the below release notes for more details,
Release Notes Link: https://help.syncfusion.com/windowsforms/release-notes/v19.2.0.48?type=all#sfcombobox-bug-fixes |