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
Hi there,
Im trying to get an a column (set type property to image) in the grid to dispay images returned from the database (mssql)/binded datasource (dataset in this case). But it does not display them :(
They display fine from on a normal image control on a page.
Has anyone ever accomplised this before, and could give me some pointers... or confirm if the webgrid does/does not support this?
alernatively, is there a way to add a standard asp:Image control to a custom column and bind it to the container's (the grid in this case) datasource?
RegardsAsh
In the WebGrid provided sample, CustomEditor_WebTextEditor.aspx, it is shown how to bind an image filename to image column WebGrid. Here is the image column definition snippet from the sample:
<ISWebGrid:WebGridColumn Caption="Image" DataMember="ProductImage" Name="ProductImage" Width="100px" ColumnType="Image" ImageFormatString="images/products/{0}" EditType="NoEdit"></ISWebGrid:WebGridColumn>
Using template cell, you could use Bind keyword in the designer to bind the field, as shown in the article "Walkthrough: Configuring a WebGridColumn to use Templated Cell" in the WebGrid documentation.
I enclose one simple sample that shows how to update value of a column that set as “TemplateColumn” as attachment. please have the attached sample tested on your end and let us know if you have different scenario.
I use "Template Column ",bind the data of database!but I can not update this "Template Column ",can you tell me how to update "Template Column "???
<ISWebGrid:WebGridColumn ColumnType=Template Caption="LGname" Name="LGname" EditType="TextBox" NewRowEditType="TextBox"> <CellTemplate> <asp:TextBox ID="TextBox1" runat="server" Text='<%# Bind("LGname") %>'>'></asp:TextBox> </CellTemplate> </ISWebGrid:WebGridColumn>
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