473,807 Members | 2,763 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

SelectText property of command field in GridView control

I'm using VS.NET 2005 (VB) webforms.

I have a gridview control with a select command field. Actions are
performed on the gridview.Select edIndexChanged event when the select command
is clicked.

I would like to display descriptive text for the SelectText property of the
command field. This text should be different for each row in the grid.

I can't find a way to do this, I would appreciate any assistance.

Thanks
Bill
Sep 11 '06 #1
1 2248
I figured it out myself immediately after posting this question!
Thanks,
Bill
"BillE" <be****@datamti .comwrote in message
news:%2******** ********@TK2MSF TNGP05.phx.gbl. ..
I'm using VS.NET 2005 (VB) webforms.

I have a gridview control with a select command field. Actions are
performed on the gridview.Select edIndexChanged event when the select
command is clicked.

I would like to display descriptive text for the SelectText property of
the command field. This text should be different for each row in the
grid.

I can't find a way to do this, I would appreciate any assistance.

Thanks
Bill

Sep 11 '06 #2

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

Similar topics

3
3019
by: Mark | last post by:
Access97 --- I set the Required property for a field at the table level and I have a form that contains that field. When I click the Close button at the top left of the screen, I get an error message when the field is blank and Access will not let me save the record. However, I also have a Close command button with the code: DoCmd.Close When I click the button, the form closes with no error message although the field is blank. I tried...
3
5591
by: | last post by:
Hello, I am trying to get add a product to a cart from a gridview control when a button in the gridview is clicked. I have a book on how to do this in asp.net 2.0 but it is done by specifying the "DataTextField" as the productID of the product that I want to add. This works but the button displays the productID as the text instead of "Add to Cart". What is the best way to get this to work?
1
11332
by: pittster | last post by:
I'm trying to change the text that is displayed for the Select command of a CommandField. I'm figuring that it would have to occur during the RowDataBound event. Here is the code I've started with (which doesn't work): protected void GridView2_RowDataBound(object sender, GridViewRowEventArgs e) {
4
3141
by: Francis | last post by:
Hello i have a continuos form, and i have a command button to help insert information on a control textbox. But when the text box is not null, i dont want the command button to show (to the current record only). What is the code i shall use in the Current Event of Form, in order to display the command button for each record (for null related text boxes). Thanks in advance
0
1070
by: Marek | last post by:
Hi all, I have GridView control placed on given page. This control has DataSource attached to it with select and update commands. One column is teplate field (DropDownList control). This control has DataSource attaced to it (dictionary table). Data field to display and for the value are choosen too. SelectedValue of DropDownList control is binded to one column of DataSource GridView control using two-way bindings. Data in DropDownList is...
3
8855
by: chelsea | last post by:
I am using a GridView control with a ButtonField and receiving 2 row command events for each click of the button. Is there a configuration switch that I can turn that will ensure I only receive one call to my handler? I'm using the most basic wiring as it comes out of VS 2005.. Thanks in advance for your help! ex/ <%@ Page Language="C#" AutoEventWireup="false" CodeFile="Default2.aspx.cs" Inherits="Default2" %>
0
1636
by: MasterNone | last post by:
Can somebody suggest a way for me to bind the SelectText instead of static text or show any cool methods to make a server side postback to the same page instead of navigate. Either of those solutions are acceptable. I am using a GridView control and would like to have one fo these soltions. Thanks in advance. MasterOfNone
2
1381
by: =?Utf-8?B?cm9kY2hhcg==?= | last post by:
hey all, Is the LinkButton1.CommandArgument for something like a primary key value of a database record? thanks, rodchar
3
1363
by: Joe | last post by:
I'm trying to use my UserControl as a TemplateField in a GridView but I'm getting the exception: "Object doesn't support this property or method exception". The user control has a flash player in it. I'm thinking this might be causing the problem but I can't really debug it to find out exactly what it is complaining about. Any suggestions?
0
9719
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
10624
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10111
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...
1
7650
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5546
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5684
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4330
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
3853
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3010
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.