Protected
Sub grdProject_ItemDataBound(ByVal sender As Object, ByVal e As Telerik.Web.UI.GridItemEventArgs) Handles grdProject.ItemDataBound
If (TypeOf e.Item Is GridEditableItem AndAlso CType(e.Item, GridEditableItem).IsInEditMode) Then
Dim editedItem As GridEditableItem = CType(e.Item, GridEditableItem)
Dim UserControl As UserControl = CType(e.Item.FindControl(GridEditFormItem.EditFormUserControlID), UserControl)
CType(UserControl.FindControl("dlstClassification"), DropDownList).SelectedValue = e.Item.DataItem("PROJECT_CLASSIFICATION")
CType(UserControl.FindControl("dlstRating"), DropDownList).SelectedValue = e.Item.DataItem("PROJECT_RATING_ID")
CType(UserControl.FindControl("dlstProjectStatus"), DropDownList).SelectedValue = e.Item.DataItem("PROJECT_STATUS")
If Not e.Item.DataItem("PROJECT_ASSIGN_ID") Is System.DBNull.Value Then
CType(UserControl.FindControl("dlstProjectAssignID"), DropDownList).SelectedValue = e.Item.DataItem("PROJECT_ASSIGN_ID")
End If
CType(UserControl.FindControl("dtReqCompDate"), Telerik.Web.UI.RadDatePicker).SelectedDate = e.Item.DataItem("PROJECT_REQ_COMP_DATE")
End If
End Sub