1. The text boxes should be filled with data automatically with the selected row in the datagrid.
2. I need the search code for the “Search By Date” command button. When we enter “From” & “To” dates we should get all the dates in between those date in datagrids.
I don't know anything about your project, but it appears to me that a more logical way to have it work would be for someone to enter their ID and then their name and date joined would automatically be filled in or to have them enter their name and then the ID and date joined would automatically be fillen in.
Then when they move on to do a search, either by ID or date, they would enter the ID to search for the corresponding ID records which would then appear in your datagrid or if they entered two different dates, the records between those dates would appear in the datagrid.
Like I said, I don't know anything about the flow of your project.