Click here to Skip to main content
15,891,431 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I'm getting the details of group in the datagridview.. please help me how to diaplay a single record in datagridview when id no is selected
Posted

You need to change your query to get the details of only one record. Something like below...
SQL
SELECT someColumn, someOtherColumn,
FROM
    TableName
WHERE 
    Id = @SelectedRecordId
 
Share this answer
 
Assuming the DataGridView is fed by a DataTable, set the RowFilter property of the DataTable's DefaultView.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900