or
Dim item As GridDataItem = DirectCast(e.Item, GridDataItem)Dim DeleteId As Integer = item("id").TextDim DeleteImage As String = item("filnamn").TextIf File.Exists(Server.MapPath("~/bulletinboard/images/") & DeleteImage) = True Then File.Delete(Server.MapPath("~/bulletinboard/images/") & DeleteImage)End If<telerik:RadTreeList ID="pdrList" runat="server" AutoGenerateColumns="false" ParentDataKeyNames="ParentPdrID" DataKeyNames="PdrID" ClientDataKeyNames="PdrID" ShowOuterBorders="False" AllowMultiItemSelection="false" AllowSorting="True" EditMode="EditForms" AllowRecursiveDelete="false" Skin="Silk" >