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
332
Data dependent DropDownList
posted

Hello

I am trying to bind a DropDownList to a Column / Cell in a UltraWebGrid. This is very easy. I put the following Code in the InitializeLayout Eventhandler:

 e.Layout.Bands[0].Columns.FromKey("MyColumn").ValueList.ValueMember = "ValueField";
 e.Layout.Bands[0].Columns.FromKey("MyColumn").ValueList.DisplayMember = "TextField";
 e.Layout.Bands[0].Columns.FromKey("MyColumn").ValueList.DataSource = MyDataSource;
 e.Layout.Bands[0].Columns.FromKey("MyColumn").ValueList.DataBind();

This works fine. But it is not what I want. I want to bind the Data of the DropDownList dynamicaly depending on the corresponding record in the Grid. So every Row has its own Datas in the DropDownList, depending on the Row's Data.

Can anyone help me how to do this.  Thanks