Go Back   Velocity Reviews > Newsgroups > ASP Net
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply

ASP Net - Please Help(Accessing Columns from a DG)

 
Thread Tools Search this Thread
Old 02-28-2005, 03:46 PM   #1
Default 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


TheNAB
  Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
swapping the rows and columns shrikanthraon General Help Related Topics 0 08-14-2009 05:19 PM
Grouping two columns in VC.net Viju Software 0 08-21-2007 01:22 PM




SEO by vBSEO 3.3.2 ©2009, Crawlability, Inc.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46