View Single Post
  #2 (permalink)  
Old August 26th, 2011, 07:42 PM
aspless aspless is offline
Friend of Wrox
Points: 489, Level: 7
Points: 489, Level: 7 Points: 489, Level: 7 Points: 489, Level: 7
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Dec 2006
Location: Berkshire, United Kingdom.
Posts: 104
Thanks: 9
Thanked 1 Time in 1 Post
Default

Ok .. Now seeing that i am not getting any value from
dvSql

Latest effort is

Code:
Dim dvSql AsDataView = DirectCast(SqlDataSource1.Select(DataSourceSelectArguments.Empty), DataView)
Dim index AsInteger = GridView1.SelectedIndex
ForEach drvSql AsDataRowViewIn dvSql
index = 0
Dim SubGrpImgVal AsInteger = drvSql("subgroupimg").ToString
If SubGrpImgVal = 1 Then
Dim ImgButGridGroup AsImageButton = CType(GridView1.Rows(index).FindControl("ImgButGridGroup"), ImageButton)
ImgButGridGroup.ImageUrl = "~/images/icons/gridmembers.jpg"
Else
Dim ImgButGridGroup AsImageButton = CType(GridView1.Rows(index).FindControl("ImgButGridGroup"), ImageButton)
ImgButGridGroup.ImageUrl = "~/images/background/1pxWhiteSpace.jpg"
EndIf
index = index + 1
Next
Which essentially removes the image from row 1 and as there is no data being returned i'm not supprised ..

First time i have tried to extract from the Datasource so that does not help!

Thoughts?
Reply With Quote