| | |
get row values from gridview when checkbox selected
Please support our ASP.NET advertiser: Intel Parallel Studio Home
![]() |
•
•
Join Date: May 2009
Posts: 1
Reputation:
Solved Threads: 0
Hi all,
I'm new to asp .net. I would like to get the value from a GridView when a checkbox is checked. I'm creating an HR eAppraisal System.
Need to capture the Employee ID, the CompetencyID and the Evaluation Factor ID
I had a checkboxlist in a GridView. The Checkboxlist Values are fixed and varied from 0 to 5.
Help Please
I'm new to asp .net. I would like to get the value from a GridView when a checkbox is checked. I'm creating an HR eAppraisal System.
Need to capture the Employee ID, the CompetencyID and the Evaluation Factor ID
I had a checkboxlist in a GridView. The Checkboxlist Values are fixed and varied from 0 to 5.
Help Please
Hi Chester,
try this :
Thank
try this :
ASP.NET Syntax (Toggle Plain Text)
Sub ActionSave() Dim Chk As New CheckBox Dim D As GridViewRow Dim EmployeeID As String = "" For Each D In GVTD.Rows Chk = D.FindControl("ChkSelect") If Chk.Checked = True Then EmployeeID = D.Cell(1).Text.Trim() End If Next End Sub
Thank
NEVER NEVER NEVER GIVE UP
•
•
Join Date: Apr 2009
Posts: 37
Reputation:
Solved Threads: 2
Yeah if u are using C#.net then you can check whether the checkbox is checked or not by the below line of code
ASP.NET Syntax (Toggle Plain Text)
CheckBoxList ch=New CheckBoxList() ch= ((DropDownList)(gdview.Rows[k].Cells[k].FindControl("Ch1")));
Last edited by peter_budo; May 15th, 2009 at 7:35 am. Reason: Keep It Organized - For easy readability, always wrap programming code within posts in [code] (code blocks) and [icode] (inline code) tags.
![]() |
Similar Threads
- pass selected gridview row to another gridview on another page (C#)
- Adding the Datatable values to GridView in .net 2005 (ASP.NET)
- Display values in listbox from db table regarding selected item in listbox? (PHP)
- Getting data from a selected row in a gridview (VB.NET)
- Select entire row details on click of button of that row inside a GridView (ASP.NET)
- Retaining GridView data which was selected with checkbox click,to the next page in AS (ASP.NET)
- Hi guys please clear my doubt. (ASP.NET)
- delete a row in a sql databse (ASP.NET)
- Getting values from GridView Controls (ASP.NET)
Other Threads in the ASP.NET Forum
- Previous Thread: Grid View row cell becomes TextBox
- Next Thread: How to make a SMS Gateway
| Thread Tools | Search this Thread |
.net 2.0 activexcontrol ajax alltypeofvideos appliances application asp asp.net bc30451 beginner bottomasp.net box browser button c# cac checkbox commonfunctions control dataaccesslayer database datagridview datagridviewcheckbox datalist deployment development dgv dialog dropdownlist dynamic dynamically edit embeddingactivexcontrol expose feedback fileuploader fill findcontrol flash form formatdecimal formview google gridview gudi iis image javascript listbox login microsoft mobile mouse mssql news novell numerical opera panelmasterpagebuttoncontrols parent radio redirect registration relationaldatabases reportemail save schoolproject search security select sessionvariables silverlight smartcard smoobjects software sql-server sqlserver2005 ssl suse textbox tracking treeview unauthorized validatedate validation vb.net video videos view vista visualstudio web webapplications webdevelopemnt webdevelopment webprogramming webservice xsl youareanotmemberofthedebuggerusers





