Skip to Content
0
Aug 03, 2005 at 08:41 AM

Problem with the DropDownByKey Control

10 Views

Hi Dear,

I have got a problem viewing the Items of a filled DropDownByKey Control.

I want to fill the Control dynamically by setting the .DataSource Property. The type of the DataSource is a DataView.

The following lines

....

....

dv=mySpecialDataView();

ddbkObject.DataSource=dv;

ddbkObject.DataBind();

....

do fill the Control, but no item in the Control is displayed. Whether the control is filled up or not, i do check with debugging. The .Rows.Count property of the DataSource gives me the right result.

Do I miss some properties to be set?

On the other Hand i have got a ASP.NET DropDownList Control, which is assigned the same DataSource. The ASP.NET Control shows me all the items filled into the DropDownList.

Where is the problem?