Skip to content

How to retrieve data from datatable to gridview on click btn

Abdallah Abu-Qaoud

Abdallah Abu-Qaoud

Asked Apr 3, 2015, 7:18 AM EDT1 answer
Share
LinkedInX
Hi All,
I need to display data into grid view by Click on button

more precisely :

I have Category button when I click on it It will 
go to the database  and collect the items that belong to this Category 
and display it into buttons


How can I do it ?

1 Answer

Know the answer? Post it. Somebody with the same question will find it here.

  • Afzaal Ahmad Zeeshan
    0
    You need to use Binding to bind data to your DataGrid; you can Bind it when the data is returned from Database. The tutorial that you're looking for is located on MSDN already, please give it a read. You will find answers to all of your questions there. 


    Thanks.
    0