| | |
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 3.5 ajax alltypeofvideos appliances application asp asp.net beginner box browser businesslogiclayer button c# cac checkbox child class compatible content contenttype control countryselector courier dataaccesslayer database datagrid datagridview datalist deployment development dgv dialog dropdownmenu dynamic dynamically edit embeddingactivexcontrol feedback fileuploader fill findcontrol flash flv form gridview gudi iis image javascript list listbox menu mouse mssql nameisnotdeclared news novell numerical opera order parent problem radio ratings redirect registration relationaldatabases reportemail schoolproject search security select serializesmo.table sessionvariables silverlight smoobjects software sql sql-server ssl tracking treeview typeof validatedate validation vb.net videos vista visual-studio visualstudio vs2008 web webapplications webarchitecture webdevelopment webprogramming wizard xsl





