473,568 Members | 2,939 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Populate a textbox inside a datagrid on loadform

I have a grid with some columns that are BOUND columns. I have three
more columns that are TEMPLATE columns with textboxes inside. i need
to populate one of the textboxes with information based on a
parameter... the code below works on a textbox outside of the grid.
how would you use the logic to populate txtDiscCov inside a grid.

If Not IsPostBack Then
sqlPropLU.Param eters("@PropID" ).Value = lblEntryType.Te xt
SqlRating.Open( )
Dim dreader As SqlClient.SqlDa taReader
dreader =
sqlPropLU.Execu teReader(Comman dBehavior.Singl eRow)
If dreader.Read() Then
txtDiscCov.Text = dreader(1)
End If
dreader.Close()
SqlRating.Close ()
End If
tried the --- Dim txtDiscCOv As TextBox =
CType(grdNotes. Cells(0).Contro ls(1), TextBox)-- have the syntax wrong.
Any help would be gratefully appreciated
(0).Controls(1) , TextBox)-- have the syntax wrong.
any help would be greatfully appreciated
Jul 21 '05 #1
0 1276

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

Similar topics

1
2719
by: Swadh | last post by:
Hi, I need urgent help on Windows Form datagrid. I have to Display a datagrid that has a textbox column and another one combo box column. I have two tables in my Access database as: Table 1: Columns: Part_ID, Descr Here Part_ID is Primary key. Table 2:
2
1201
by: jm | last post by:
I have datagrid. Inside the template columms there is a textbox. It has an id. When the textbox wasn't inside the datagrid tags, I could reference with order_id.text = "some text" but all of a sudden, once inside the datagrid tags, I can't use the same statement Any ideas on what is going on here? Thanks.
1
2671
by: Irishmaninusa | last post by:
Hello Everyone, I have a datagrid and have used a text box as way to allow a user to edit items in the grid. My question for you is how is it possible to write code for the text change event of the text box. I want to put in some validation and I don't want to use the validator controls because that seems to validate all controls that they...
1
1452
by: Simon | last post by:
Hi I have a datagrid with a TemplateColumn where I have put inside a TextBox without databinding with the data source. The TextBox is used to type a number for each row of the datagrid. I have set the AutoPostBack property of TextBox to true and I have raise TextChanged event to make some control on typed number. When I type a number on...
0
1382
by: jason | last post by:
Hello everyone. I am trying to write some custom command events into a DataGrid. The command that is currently giving me trouble is an "Add" custom command in the footer of a template column. Question #1: In the Add button Command Event I am trying to access the Text value of the TextBox in the other Footer columns. However, inside the...
14
3645
by: Barney | last post by:
How can I populate a textbox from a dataview? I have a dataset i'm filtering on and i want to populate several textboxes based on that filter. How can i get that to work? I've tried: dsDetails = GetCars() dvDetails = New DataView With dvDetails
0
272
by: anna | last post by:
I have a grid with some columns that are BOUND columns. I have three more columns that are TEMPLATE columns with textboxes inside. i need to populate one of the textboxes with information based on a parameter... the code below works on a textbox outside of the grid. how would you use the logic to populate txtDiscCov inside a grid. If Not...
2
2734
by: Junior | last post by:
Hi All, I haven't got a response for this question lately and i really need to get this done ASAP. I have a .aspx page that has table two column four rows on it. 1. How do i use codebehind C# to populate the HTML table? 2. How do i pull some figures from the second column and add them up in the Total field.
1
2083
by: tommy.tashjian | last post by:
Hi, I have a datagrid with a textbox column that needs a lookup table. Now, I was going to just use a dropdownlist instead of the textbox, but that won't fly here. So, what I need to know, is it possible to have the following: When a textbox in this column in the datagrid has focus and the user hits a hot key, have a new form come up with a...
0
7693
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...
0
7604
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...
0
8117
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...
1
7660
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
6275
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...
1
5498
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...
0
5217
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...
1
2101
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
0
932
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...

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.