How to retrieve data according to the user name into grid

Dec 3 2017 4:41 PM
Hi all,
 
How to retrieve data according to the user name into gridview in asp.net web forms. I tried a lot but it doesn't work.
 
I have created an online food diary i want to retrieve data according to the user name from the table. 
 
Thank you. 

Answers (8)