473,765 Members | 2,059 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Vb.Net:Change the text of hyperlink button in datagrid

28 New Member
Hi,

I have a hyperlinkbutton in my datagrid

Initially, I set the text of the hyperlink button as "show"

once user click it, i want it to change into "view more detail"

I tried to change as below but it lose its hyperlink function and just as a text only

dim dgitem as datagridItem

For Each dgitem In DataGrid1.Items


dgitem.Cells(7) .Text = "view more detail"
Next

can anyone give me direction

Thanks in advance
Aug 27 '08 #1
1 2224
Plater
7,872 Recognized Expert Expert
You would need to edit the hyperlink object inside the cell, and not just overwrite it by using the .Text property.
It's probably considered a child .Control of the cell, check in there
Aug 28 '08 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

6
18289
by: Shivang | last post by:
Hello Everybody, I am using Datagrid in VB.net. I don't want the auto generation of rows in the datagrid (last row shouldnt be the new row with empty values)..in addition to this the datagrid should not be readonly..that is I should be allowed to edit the values in datagrid. You help will be appreciated.
4
592
by: Joy | last post by:
Hi, I need to be able to to disable the Apend Row feature of the VB.NET datagrid and then enable it again. The reason is because I want to allow a user to enter as many rows in the datagrid as they want until a certain number of rows is reached. When that number of rows is reached I want to disable the Apend Row feature - BUT if they delete a row, I want to enable the Apend Row feature again. Does that make sense?? I have code that...
0
1790
by: Greenwich Support | last post by:
Hi All, I have a very weird problem which is occurring with a VB.Net app and PostgreSQL 7.3.1. There is a form that has a standard .Net datagrid on it that contains some data from a table in PostgreSQL. Now, the datagrid has functionality to allow the developer to programmatically determine what changes (if any) that have been made to the grid by the user -- i.e. determine if any new rows has been added, any rows modified or deleted.
1
2178
by: adiel | last post by:
Hello everyone. The problem is when printing, the text gets cut half way and prints the other half on to the next page when printing using internet explorer and an asp.net datagrid. I am sure there must be a simple fix to stop the text from getting cut in half like this when using the asp.net datagrid. Any ideas? Thanks before hand, Adiel
7
3531
by: uiranejeb | last post by:
Hi everybody, I am an asp.net datagrid that have all the rows editable. An user can update any column from datagrid. I'm trying to find a way to update only the rows that were updated. How can I handle this? Is there any possibility to get data row behind datagrid row?
3
1680
by: VB Programmer | last post by:
What is the best 3rd party ASP.NET Datagrid control that is available (either free or purchase)? Thanks.
3
2506
by: Rob Rogers | last post by:
I have an ASP.NET datagrid that loads an image. I would like to load one image if the value in my SQL table is true and another if it is false. Here is my code. <%@ Page Language="vb" AutoEventWireup="false" Codebehind="Search.aspx.vb" Inherits="PROJECT.WebForm1"%> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML> <HEAD> <title>WebForm1</title>
1
1413
by: Danny Ni | last post by:
Hi, We use ASP.Net datagrid paging a lot and we have been experiencing "Index out of bound" error messages when we click on rows of datagrid on differnet pages every now and then. The problems do not apear to be consistent, they could happen anywhere, anytime. We only use datagrid's default paging ability. That is, set AllowPaging property to true and write a handler for PageIndexChanged. Somebody told me this is datagrid's...
1
1172
by: Kyle | last post by:
Everyone, I am making a vb.net datagrid control, it pulls out datatable from the Database, and here's my question: according to specific rows from the datatable i pulled out that were mapped to datagrid, those specific rows will have different colors. That means, row #1 might be yellow (according to the data from the DB), then row #2 might be red, and row #3 would be blue, and row #4 can be red again according to the data.
3
1472
by: Rick | last post by:
If I create a class that inherits from the asp.net datagrid, and the enhancements only relate to the codebehind, what does the grid's html look like in design mode? I mean, whereas I might have an unadorned DataGrid as such... <ASP:DataGrid id="aspDataGrid" runat="server" ... templates and stuff </ASP:DataGrid> and I create a class like so:
0
9568
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9399
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10007
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9835
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8832
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6649
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
1
3924
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3532
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2806
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.