Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
330
Error while using DropDownProvider
posted

Hi,

   I am using DropDownProvider which is dynamically added to webdatagrid,the grid loads correctly but on post back it give error as shown in the error.jpg.Below is the code snippet used to load DropDownProvider dynamically.

 this.wdgPartnerAttributes.Behaviors.CreateBehavior<EditingCore>();
 this.wdgPartnerAttributes.Behaviors.EditingCore.Behaviors.CreateBehavior<CellEditing>();

DropDownProvider ddlProvider = new DropDownProvider();
ddlProvider.EditorControl.DataSource = collection;
 

ddlProvider.ID = " ddlProvider 1" + cnt;
this.wdgPartnerAttributes.EditorProviders.Add(ddlProvider);

EditingColumnSetting columnSetting = new EditingColumnSetting();
columnSetting.ColumnKey = "Key1";
 columnSetting.EditorID = ddlProvider.ID;

this.wdgPartnerAttributes.Behaviors.EditingCore.Behaviors.CellEditing.ColumnSettings.Add(columnSetting);

Parents Reply Children
No Data