.NET Logo
Welcome Guest Search | Active Topics | Members | Log In | Register

เรียนท่านผู้รู้ ผมต้องการแสดง image ใน gridview ครับ Options · View
fronzen
Posted: Tuesday, September 02, 2008 10:03:09 AM
Rank: มือสมัครเล่น
Groups: Member

Joined: 4/22/2008
Posts: 18

เรื่องมีอยู่ว่า

1. Import text file to table in database.   now is completed

2. If, like import next time. must be check candidate key form teble (item 1)

3. If, new import have cadidate key. Let show image im row of gridview.

---format data in text file-------

              "Id","Name","Lastname"

---gridview before import-----

______________________________________________________________

_select__ |____Duplicate______|___ ID___|___ Name____|___Lastname___|

    |_|          |       img visible=false    |-------         data new import         --------|

 

checkbox field select for choose row import

 

fronzen
Posted: Saturday, September 06, 2008 10:09:33 PM
Rank: มือสมัครเล่น
Groups: Member

Joined: 4/22/2008
Posts: 18
i can make it.
fronzen
Posted: Sunday, September 07, 2008 9:09:53 PM
Rank: มือสมัครเล่น
Groups: Member

Joined: 4/22/2008
Posts: 18

 

 

Private Sub gvTemp_RowDataBound(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.GridViewRowEventArgs) Handles gvTemp.RowDataBoundIf e.Row.RowType = DataControlRowType.DataRow Then

 

If DataBinder.Eval(e.Row.DataItem, "FDuplicate") = "D" Then

 

DirectCast(e.Row.FindControl("imgDup"), Image).Visible = True

 

End If

 

End If

 

End Sub
Users browsing this topic
Guest


Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

Main Forum RSS : RSS

YAFVision Theme Created by Jaben Cargman (Tiny Gecko)
Powered by Yet Another Forum.net version 1.9.1.8 (NET v2.0) - 3/29/2008
Copyright © 2003-2008 Yet Another Forum.net. All rights reserved.


Sponsored by