or
<Style TargetType="{x:Type t:RadGridView}" x:Key="OverrideDefaultGridViewStyle"> <Setter Property="GridLinesVisibility" Value="None"/> <Setter Property="RowHeight" Value="50"/> <Setter Property="ColumnBackground" Value="White"/> <Setter Property="RowIndicatorVisibility" Value="Collapsed"/> <Setter Property="ShowGroupPanel" Value="False"/> <Setter Property="CanUserFreezeColumns" Value="False"/> <Setter Property="CanUserReorderColumns" Value="False"/></Style>//rdoc is the document, a .docx file used as a template.//Search for the text "sometext".DocumentTextSearch dts = new DocumentTextSearch(rdoc);TextRange tr = dts.Find("sometext");//Get the inline that the text is in.Inline iCurrent = (Inline)tr.StartPosition.GetCurrentInline();//Get the table to delete.Table tToDelete = iCurrent.GetParentOfType<Table>();//Delete the table.sCurrent.Blocks.Remove(tToDelete);