need 2 fetch from grid for a student with the least mark earned in a subject from the grid ... with reference to reg.no....

need 2 fetch from grid for a student with the least mark earned in a subject from the grid ... with reference to reg.no....

Try this: click on the data grid, and go to the properties pane and click on the Events button. Double-click in SelectedIndexChanged to start a sub. in the sub itself, you reference values by column number (z-indexed) like so:

Dim selectRow As GridViewRow = DisplayResults.SelectedRow
        Dim FileNo As String = selectRow.Cells(9).Text
        Dim SelectedName As String = selectRow.Cells(2).Text
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.