Hello everyone,
I am developing a SEARCH page for my website, where I want results fetched from the database.
Now obviously only the number of columns is fixed, and not the number of rows, which is dynamic in nature based on the search parameters, provided by the user. I know, the answer must be fairly simple but I'm new to c#, that is why I want to know the approach to achieve this.
Before giving the answer, kindly consider that all the database connections have been done, and results are residing in a DataTable dt, where they were brought through a DataAdapter da. Now,
I want the code for the section:
if(dt.Rows.Count>0)
{
//How to represent the fetched data??
}
Thanks in advance.