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
90
Problem selecting item in dropdownlist in a ultrawebgrid
posted

Hi i have an ultrawebgid and one column is dropdownlist.

I bind the list to a datasource like

string pid=123;

 grid_adrs.Columns.FromKey("PER2").ValueList.DataSource =DataSource;
            grid_adrs.Columns.FromKey("PER2").ValueList.ValueMember = "ID"; 
            grid_adrs.Columns.FromKey("PER2").ValueList.DisplayMember = "DESCR";
            grid_adrs.Columns.FromKey("PER2").ValueList.DataBind();

and i want to set selected item of that list to the pid so that show the correct descr.

Any ideas

Thanks a lot