473,378 Members | 1,401 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,378 software developers and data experts.

Hide image in datagrid row

Hi guys,

I have two images in each row of datagrid. I need to hide one in the first
row and the second in the last row.

Can someone please let me know how i can implement this in VB .net?

thanks

Manny
Nov 19 '05 #1
2 1278
During the ItemDataBound event you locate each item and then set the
..Visible property accordingly.
The event runs once for each item in te datasource (plus once for the header
and once for the footer).
--
Joe Fallon


"Manny Chohan" <Ma*********@discussions.microsoft.com> wrote in message
news:92**********************************@microsof t.com...
Hi guys,

I have two images in each row of datagrid. I need to hide one in the first
row and the second in the last row.

Can someone please let me know how i can implement this in VB .net?

thanks

Manny

Nov 19 '05 #2
PreRender event is better for this. You can just navigate through the rows
of the fully built grid.

Eliyahu

"Joe Fallon" <jf******@nospamtwcny.rr.com> wrote in message
news:OU**************@TK2MSFTNGP14.phx.gbl...
During the ItemDataBound event you locate each item and then set the
.Visible property accordingly.
The event runs once for each item in te datasource (plus once for the header and once for the footer).
--
Joe Fallon


"Manny Chohan" <Ma*********@discussions.microsoft.com> wrote in message
news:92**********************************@microsof t.com...
Hi guys,

I have two images in each row of datagrid. I need to hide one in the first row and the second in the last row.

Can someone please let me know how i can implement this in VB .net?

thanks

Manny


Nov 19 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: jez123456 | last post by:
Not sure if I'm in the right thread but here goes. I have an ASP.Net web page with a datagrid. The code behind is C#. If the datagrid has no records the datagrid header section is still shown....
6
by: Das | last post by:
Hi everyone, I'm using datagrid control to display the data. I want to hide column to be displayed into the data grid. I'm using the code as given below: Method given below is used to bind the...
13
by: Neo Geshel | last post by:
I have examined about 80+ different upload scripts on the 'net, both in VB and C#, and none seem to do what I need them to do. Perhaps someone here can point me somewhere that Google hasn't...
1
by: ltt19 | last post by:
Hi everyone! I want to do da Image gallery using just the datagrid, this one will dilpays only images, no text, that means that it will have about 4 Collumns that will displays just images from...
4
by: Shapper | last post by:
Hello, I have an image button in a web page. The default image is ShowPanel.gif. When the image is clicked I want the panel "myPanel" to become visible and the image button to change to...
1
by: Shapper | last post by:
Hello, I have an ASP:Datagrid where in each record I display an image. The image I display can be one of two depending of the value of the field "Level" of that record. So for each record:...
5
by: J | last post by:
Ok, they have changed a lot of stuff in VB.net. How in the world do you hide a column on the Datagrid? -- Jason
6
by: Doogie | last post by:
Hi I have an img control I am trying to hide upon certain types of commands in my code behind. When to hide it is directly tied to a asp:dropdownlist control. So depending on what the user...
0
Debadatta Mishra
by: Debadatta Mishra | last post by:
Introduction In this article I will provide you an approach to manipulate an image file. This article gives you an insight into some tricks in java so that you can conceal sensitive information...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.