473,386 Members | 1,795 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,386 software developers and data experts.

Grab 2 Values in the same row in a DataGrid in a Webform

Hello,
I have a VB.net webform which shows a DataGrid that is actually a query
of 3 tables with the results shown together. I need to be able to take
2 values out of a row when a user clicks the button associated with the
row. I have been able to use Key= datagrid1.datakeys(e.item.itemindex)
to get one of the values but I cannot figure out how to retrive the
value in the same row that is right next to this value. In VBA you
could use an "offset" to get the value. How do I grab two values in a
selected row, one is the datakey one is not? Please help...

Nov 14 '06 #1
0 814

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

Similar topics

1
by: geek | last post by:
Hi all, I have a datagrid I want to store the data in the datagrid to a dataset. Can anybody please tell me how to do this. TIA.
0
by: Brian Conway | last post by:
Is there a way to take information gathered outside of the datagrid (ie, Last Name First Name). I have a button click event on a webform that goes to an LDAP service and retrives this information,...
2
by: Chris | last post by:
Hi, I use a datagrid in a webform but the grid is never visible in the browser (only at design-time is it visible). Using it in a Winform : no problem. How come ? Thnx
2
by: Daniel Walzenbach | last post by:
Hi, I created an ASP.NET Datagrid where a single row can be selected by clicking anywhere on the row (according to...
4
by: Rod | last post by:
I posted a message to this group yesterday asking how to pass parameters to a web form that is the source of an IFrame on a parent web form. I've gotten my answer, and it works. Thanks! Now I...
1
by: Willem | last post by:
Hi, I'm using a datagrid on a webform with 4 visible and 1 invisible columns. When clicking a button I want to make the invisible column visible. I use the code DataGrid1.Columns(4).Visible =...
5
by: I'm Home | last post by:
I've read a lot of suggestions including the "javascript:printWindow()" command ... what I want ... the entire datagrid in printed form using my css style. What I get the page displayed on my...
3
by: Moojjoo | last post by:
I created an user control (.ascx file) with a DropDownList (DDL) with the following code behide: public string Selected_dept_value() { string dept_value = dept_dropdown.SelectedValue; return...
0
by: herman404 | last post by:
Hi everyone, I'm trying to dynamically add 3 button columns to a DataGrid object that I have on an ASP.net webpage, but I don't see any documentation on how to do it. I've seen plenty of examples...
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$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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...
0
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,...
0
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...
0
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...

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.