IT's Urgent Plz.......how to fetch checked values(check box) from grid view (In vb.net) [modified]
-
I have gridview in mine code,it has check box control. I want to fetch those rows only which has been selected by checking the check box column. Please suggest me what I need to do. Ashish K. vyas -- modified at 3:44 Thursday 29th November, 2007 Ashish K. vyas
-
I have gridview in mine code,it has check box control. I want to fetch those rows only which has been selected by checking the check box column. Please suggest me what I need to do. Ashish K. vyas -- modified at 3:44 Thursday 29th November, 2007 Ashish K. vyas
I use this to get the IDs (in the first column) you should be able to modify it to get the checked value from the checkbox cell
Private Sub DoReturns() Try Dim oRow As DataGridViewRow mvReturnValue = "" mvReturnValues = "" If dgData.SelectedRows.Count > 0 Then mvReturnValue = dgData.SelectedRows(0).Cells(0).Value.ToString For Each oRow In dgData.SelectedRows mvReturnValues += oRow.Cells(0).Value.ToString + "," Next End If Catch Exc As Exception Throw Exc End Try End Sub
Quote from Great Outdoors: its a confident traveller who farts in India
-
I have gridview in mine code,it has check box control. I want to fetch those rows only which has been selected by checking the check box column. Please suggest me what I need to do. Ashish K. vyas -- modified at 3:44 Thursday 29th November, 2007 Ashish K. vyas