I have the following grid in my ASPX page. How can i add rows programatically (on server).
GridDataItem item1 = new GridDataItem(RadGrid1.MasterTableView, 0, 0, GridItemType.Item);
does not work.
<
telerik:RadGrid ID="RadGrid1" runat="server" GridLines="None" Height="241px">
<MasterTableView>
<RowIndicatorColumn>
<HeaderStyle Width="20px"></HeaderStyle>
</RowIndicatorColumn>
<ExpandCollapseColumn>
<HeaderStyle Width="20px"></HeaderStyle>
</ExpandCollapseColumn>
<Columns>
<telerik:GridBoundColumn EmptyDataText="&nbsp;" HeaderText="Column 1" UniqueName="COL1">
<HeaderStyle Width="60px" />
</telerik:GridBoundColumn>
<telerik:GridBoundColumn EmptyDataText="&nbsp;" HeaderText="Column 2" UniqueName="COL2">
<HeaderStyle Width="60px" />
</telerik:GridBoundColumn>
</Columns>
</MasterTableView>
<FilterMenu EnableTheming="True">
<CollapseAnimation Type="OutQuint" Duration="200"></CollapseAnimation>
</FilterMenu>
</telerik:RadGrid>