The Syncfusion native Blazor components library offers 70+ UI and Data Viz web controls that are responsive and lightweight for building modern web apps.
.NET PDF framework is a high-performance and comprehensive library used to create, read, merge, split, secure, edit, view, and review PDF files in C#/VB.NET.
Hello Everyone, I have one auto complete combobox in one windows form.The combobox is filled by calling a web service method which returns a data set.Now the requirement is that "Select" word should be selected in the dropdown initially when the screen loads.After that if the user changes the selection,then also "Select" should be the first entry in the dropdown(i.e when you open the dropdown with mouse,"Select" should be the first entry).Requirement number 2 is that all the items in the combobox should be sorted according alphabatically.
I have the same requirement for another combobox which is a normal windows combobox. What I did is that I added one column named "SortBy" to the the datatable.Then I iterated throgh all the rows in the table and set the value of this column as 0 for the row containg "Select".All other rows have been set as 1 for this column.After that I sorted the rows in the dataview using
What this essentially does is that it sorts the rows on two columns-first on "SortBy" column which brings the row with "Select" as the first row.After that it sorts the records on "WORKGROUP_NAME" column.So I get my expected behaviour in the windows combo.
But the same code is not working in case of syncfusion auto complete combobox.
I have provided both the code snippets here.
Windows ComboBox binding code: ============================
COT.SubscriptionsWS.SubscriptionService ws = new COT.SubscriptionsWS.SubscriptionService(); DataSet dsWorkgroups = new DataSet(); try { dsWorkgroups = ws.GetWorkgroups(PartyPlugin.region, 33, Convert.ToInt32(cmbRelationship.SelectedValue)); DataRow dr = dsWorkgroups.Tables[0].NewRow(); dsWorkgroups.Tables[0].Rows.InsertAt(dr, 0); dsWorkgroups.Tables[0].Rows[0]["WORKGROUP_NAME"] = "Select"; dsWorkgroups.Tables[0].Rows[0]["WORKGROUP_ID"] = -1;