How to create template Cell programmatically?

1 reply. Last post: November 30, 2009 2:05 AM by Andi Santoso
Tags :
  • New Discussion
  • New Question
  • New Product Feedback

I've found in sample  definintion CellTemplate cell:

 

 <ISWebGrid:WebGridColumn Name="CommandColumn1" Caption=" " Bound="False" Width="150px"
                    ColumnType="Template">
                    <CellTemplate>
                        <asp:Button ID="B1" runat="server" Text="View Orders" Height="18px" Font-Size="8pt"
                            OnClick="B1_Click" />
                    </CellTemplate>
                </ISWebGrid:WebGridColumn>

But i don't know how to create programtically that kind of CellTemplate, I've tried with class that implements ITemplate interface but it doesn't work fine the template shows only in the last rows and disapper after postback . Can You give me simple sample how to create this column with CellTemplate from sample?

All times are GMT -5. The time now is 3:35 AM.
Previous Next