473,406 Members | 2,259 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,406 software developers and data experts.

Please Help(Accessing Columns from a DG)

> Hi

What i have actually done is that i have bounded a datagrid from a tblTemp and then provided two checkboxes for the Admin to either
approve or reject the record. I have implemented the reject f(). I
have implemented the mechanism for detecting the checked boxes.
but when the admin approves of a record, then some fields of that record must be copied to a tblCustomer and a tblUSer.
I just want to know Can i be able to access all of the DG fields . I am currently not storing the info from tblTemp anywhere and am
directly binding using ExecuteREader(). Will i have to use a Data
Table or a DataSet? (CAn you give an example) . Thank You.
I am attaching the f() so that u can see what options do i have.


Regards
Nabil

'Event Handler for Post Button
' Main Function that handles all
public Sub OnPostClick(Sender as Object,e as EventArgs)

Dim Approve as CheckBox = nothing
Dim Reject as CheckBox = nothing

For Each MyItem as DataGridItem in DataGrid1.Items

' Heres the job to find the checked ones
Approve = MyItem.FindControl("Approve")
Reject = MyItem.FindControl("Reject")

if (Approve.Checked = true) then
'Check whether both have been Checked
if(Reject.Checked = true) then
' NEEED a Continue(C#-VB Equivalent) statement here
End if

'So approval is given
' Now here i need to access the elements of the
DG(or any other technique u suggest)

Else if (Reject.Checked = true) Then

'Rejection implies Deletion

' Code to delete

End If

Next
End Sub
Posted Via Usenet.com Premium Usenet Newsgroup Services
----------------------------------------------------------
** SPEED ** RETENTION ** COMPLETION ** ANONYMITY **
----------------------------------------------------------
http://www.usenet.com
Nov 19 '05 #1
0 824

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

Similar topics

2
by: Jeremy Gollehon | last post by:
I'm trying to help a friend out but couldn't find an answer so thought I'd post here. Is it possible to access the frame window at http://www.5460.net (a chinese site)? We're trying to get the...
6
by: J Mox | last post by:
I have a function that changes which radio button is selected. I need to pass the form name to the function but not the field name and am doing so like: changeRadio(this.form); The function: ...
4
by: sugnaboris | last post by:
Hope someone can help me with a question about this control. I would like to display a list of file names, together with a description for each file. I've done some prototyping, and the ListView...
3
by: keithb | last post by:
My code dynamically adds template fields to a GridView control. Everything seems to work OK, except when updating, because I haven't found a way to reference the dynamically added textboxes....
1
by: bearmstrong | last post by:
Here's what i need to do, keep in mind that I'm new to access and have learned coding is the same as excel. I have 2 different types of users, those that are users and those that are admin. I have...
1
by: Alex | last post by:
Hi all, I'm trying to get this example working with csharp in a winforms app... I'm creating a datasource and putting in a table that has 10 columns: cboxTeam.DataSource = cboxTeam_DS.Tables;...
0
by: sheetal.sash | last post by:
Hi, We have our web-site developed in classic ASP, and I need to add this additional feature on one of the pages to access a VB application. How can I do that? The VB application basically...
0
by: khalid sohail | last post by:
hi can any1 help me in accessing controls that exist in datagrid using the javascript.......ordinary that controls are access by the document.getelementById('controlid') mathod but that does not...
1
by: TheDude5B | last post by:
Hi, I have the following code which accesses an XML document and then displays the document using XSL....
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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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...
0
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...
0
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...
0
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,...

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.