iSeller Commerce
iSeller POS Retail
iSeller POS F&B
iSeller POS Express
Crosslight
WebUI
ClientUI
What's New
Download Trial
Web Solution
Mobile Solution
Enterprise Solution
Custom Development
Blog
Community
Latest Development Blogs
ForumPostTopic
Browse By Tag
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?
Hi Michal,
To make a template column programmatically, first, you will need a class file that Instantiate the type of column that you wanted and add it to the container. After that,at prepare databinding on server side, you will need to add a new column and call that specific class.
Here are the sample code that I make to create a template column with label in it. Remember to put the class CellTemplate.cs file into your App_Code.
or
Choose this if you're already a member of Intersoft Community Forum. You can link your OpenID account to your existing Intersoft Social ID.
Choose this if you don't have an Intersoft account yet. Your authenticated OpenID will be automatically linked to your new Intersoft account.
Enter your Wordpress Blogname