I've been trying to dynamically bind a list to the data source of a GridDropDownColumn in a detail table. I have manage to get it to mostly work, but it isn't binding the first row's cell. I've been using the code below in various radGrid1 subs, and I keep getting the same results. I believe that I'm binding the data source after the first row is created and bound, but where do i put it so I can bind the data source before the first one.
Thanks for any help.
Thanks for any help.
If (e.Item.OwnerTableView.Name = "DetailTable") Then If _list Is Nothing Then _list = Managers.DataManager.LoadAll End If 'set the data sourse If TypeOf e.Item Is GridDataItem Then If Not _IsBound Then Dim item As GridDropDownColumn = TryCast(e.Item.OwnerTableView.GetColumnSafe("ddcCondition"), GridDropDownColumn) Dim itemManager As GridDropDownColumnEditor = TryCast(item.ColumnEditor, GridDropDownColumnEditor) itemManager.DataSource = _list itemManager.DataBind() _IsBound = True End If End If
End If