When I run the code and put the Grid into edit mode the dropdown column is populated with
seven 'System.Data.DataRowView' rows (which is the number of rows in the Title database table)
I cannot see why the values are not being displayed - instead I am getting the object name.
can anyone help?
This my code on the ItemdataBound Event:
GridEditableItem lEditItem = e.Item as GridDataItem; GridEditManager lEditManager = lEditItem.EditManager; GridDropDownColumnEditor lTitle = (GridDropDownListColumnEditor)(lEditManager.GetColumnEditor("ddlTitle")); DataTable dtTitle = ToDataTable2.ToDataTable(title); lTitle.DataSource=dtTitle; lTitle.DataValueField = dtTitle.Columns[0].ToString(); lTitle.DataTextField = dtTitle.Columns[1].ToString(); lTitle.DataBind();