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

How to read from Details view

Hi there,

I'm using asp.net 2.0 vb

And I wrote this

Protected Sub GridView1_SelectedIndexChanged(ByVal sender As Object, ByVal e
As System.EventArgs) Handles GridView1.SelectedIndexChanged
txtGNID.Text = Me.GridView1.SelectedRow.Cells(1).Text
End Sub

Every time when I slecet row my text box will show the selected cell value
(in this case is my VendorID)

Now I have a DetailsView

Protected Sub DetailsView1_PageIndexChanging(ByVal sender As Object, ByVal e
As System.Web.UI.WebControls.DetailsViewPageEventArgs ) Handles
DetailsView1.PageIndexChanging

lblColorID.Text = ?

End Sub

What is the equivalent to the Grid view

I tried: lblColorID.Text = Me.DetailsView1.FindControl("ColorID").ID
but no luck

Thanks,

Ed Dror

Apr 2 '08 #1
0 853

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

Similar topics

0
by: Jerry | last post by:
Below is ALL the code for all the databases... Here's the problem: I callup the aspx file in IE and the form comes up just fine. When I select a person to update, I get the subject error. ...
4
by: Dilip | last post by:
hi all i m trying to make a windows explorer in my project where i need details view with some columns. but when i give this code at form load Private Sub Form1_Load(ByVal sender As...
0
by: Chicagoboy27 | last post by:
I am wondering how to set an object datsource or any data source for a dropdown list that is a details view. Here is a brief set up. I have a details view that lists a bunch of information. when a...
1
PEB
by: PEB | last post by:
POSTING GUIDELINES Please follow these guidelines when posting questions Post your question in a relevant forum Do NOT PM questions to individual experts - This is not fair on them and...
0
by: amily | last post by:
hi, i designed a page in details view control in asp.net. for entering information in the database. there is one column in which we have to write yes or no. so i thought of using a combo box. the...
0
by: Bishop | last post by:
ASP.NET 2.0 I have a SqlDataSource that was created for a gridveiw. I'm using the same SqlDataSource for DB inserts using a Details View. My Details View DefaultMode set to Insert because...
1
by: sreepathiyarra | last post by:
I have a details view control which is reading a column from the SQL database. When i insert into the database, I store the simple text with some carriage returns.etc. I can see that the data it...
0
by: lieufirst | last post by:
hi all, well i got a grid view and a details view i linked the details view to the grid view so when i select a field it appers in the details view but the problem is when i surf to diffrent pages...
4
by: randy.buchholz | last post by:
Been fighting this one for a while, looking for help. I have a simple page with a grid view and details view (just managing a single table). The details view is primarily used for creating new...
5
by: inungh | last post by:
I have a details view on my details form and has SQL statement and paramter as following: <SelectParameters> <asp:QueryStringParameter DefaultValue="213-46-8915" Name="au_id"...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
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: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
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...

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.