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
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.