Get Specific data from datagrid.
i mean when i select row on datagrid, program will return value in that row.
Any Help will appreciated. thx
Get Specific data from datagrid.
i mean when i select row on datagrid, program will return value in that row.
Any Help will appreciated. thx
Jump to Postyou mean get data on each row?
Jump to PostWell, try this code :
add this code in datagrid click event.Dim i As Integer i = dgAuthor.CurrentRowIndex() MsgBox(Trim(dgAuthor.Item(i, 0)) & " - " & Trim(dgAuthor.Item(i, 1)) & " - " & Trim(dgAuthor.Item(i, 2)))
Modified as u needed.
you mean get data on each row?
Well, try this code :
add this code in datagrid click event.
Dim i As Integer
i = dgAuthor.CurrentRowIndex()
MsgBox(Trim(dgAuthor.Item(i, 0)) & " - " & Trim(dgAuthor.Item(i, 1)) & " - " & Trim(dgAuthor.Item(i, 2)))
Modified as u needed.
yes. that what i needed.
Thank you.
you're welcome :)
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.