How to Display Selected Data in a DataGridView using it's own events??

Status
Not open for further replies.

itsallinthemind

Honorable
Oct 5, 2013
9
0
10,510
0
Hi Guys:) I hope everyone is doing great:)

I Have a Question..

How to Display Selected Data in a DataGridView using it's own events??

This is my Code..

Public Class From1
Private Sub frmTest_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
ChildNameTableAdapter.Fill(TestDataSet.ChildName)
End Sub
Private Sub DisplayButton_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles DisplayButton.Click
Dim i As Integer
For i = 0 To ChildNameDataGridView.RowCount - 1
If (ChildNameDataGridView.Rows(i).Cells(1).Value).chars(0) = "R" Or (ChildNameDataGridView.Rows(i).Cells(1).Value).chars(0) = "r" Then
MsgBox(ChildNameDataGridView.Rows(i).Cells(1).Value)
End If
Next
End Sub
End Class
I already display my selected data, but i can't make it display in the datagridView....
Help me...Thanks..:)
 
Status
Not open for further replies.
Thread starter Similar threads Forum Replies Date
S Apps General Discussion 4
A Apps General Discussion 9
Z Apps General Discussion 1
G Apps General Discussion 0
P Apps General Discussion 3
A Apps General Discussion 2
RepoDraghon Apps General Discussion 1
I Apps General Discussion 3
J Apps General Discussion 1
A Apps General Discussion 2
T Apps General Discussion 1
D Apps General Discussion 2
D Apps General Discussion 3
L Apps General Discussion 2
D Apps General Discussion 2
R Apps General Discussion 7
L Apps General Discussion 1
T Apps General Discussion 7
R Apps General Discussion 2
viveknayyar007 Apps General Discussion 0

ASK THE COMMUNITY

TRENDING THREADS