For creating an autocomplete textbox,
I made the cell style as dropdownlist and added a valuelist to it and then by default this cell will gets the auto complete mode set to true. But I do not want the button to be displayed on the cell when the style is set to dropdownlist.
Is there any other way to perform my task.
Nagarjun.
Hi,
You need to post this in the WebGrid forum. This forum is for WinGrid, and I'm afraid I don't know anything about the WebGrid, so I can't really help you.
Hi, How to make a Textbox as a AutoComplete or Autosuggest for the dynamic created textbox inside the WebDatagrid? I am creating a textbox in the Init method of the WebDataGrid as below code
Infragistics.Web.UI.GridControls.TextBoxProvider txtCustomer = new Infragistics.Web.UI.GridControls.TextBoxProvider(); txtCustomer.ID = "txtCustmer"; txtCustomer.EditorControl.AutoCompleteType = AutoCompleteType.Search;
this.HitGrid.EditorProviders.Add(txtCustomer); Infragistics.Web.UI.GridControls.EditingColumnSetting columnSettingCustomer = new Infragistics.Web.UI.GridControls.EditingColumnSetting(); columnSettingCustomer.ColumnKey = "Key_CUSTOMER"; columnSettingCustomer.ReadOnly = (strrole == "ADM") ? true : false; columnSettingCustomer.EditorID = txtCustomer.ID; this.HitGrid.Behaviors.EditingCore.Behaviors.CellEditing.ColumnSettings.Add(columnSettingCustomer);
Please do the Needful.
Thanks in Advance.
Are you doing this using an editor? If so, which control are you using?
I think you can probably achieve what you want using the ButtonDisplayStyle on the column, but it's hard to tell with so little information.