Skip to content

DataGrideView

Sujit Soni

Asked Feb 14, 2014, 11:19 PM EST1 answer
Share
LinkedInX
Hi all,
 
Can any one guide me out how to fill the datagridview field with column from multi-table..
example , suppose i have 3 table , Table A (Cust_ID,First Name,LastName);   Table B (Emp_ID,EmployeeName,Task,) and  Table C (Status_Id,InProgress,Pending).
 
I want to fill the grideview with selected column like;
 
DatagrideView
-----------------------------------------------------------
[FirstName] [EmployeeName] [Task] [Status]
 ------------------------------------------------------------
 
A sample code will help me a lot.
 
Thanks

1 Answer

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

  • Biswa Pujarini Mohapatra
    0
    You can't bind multiple table to gridview. But there are lot of options. Write a sql query with join to get one resultset then fill the dataset, but as per your table structure i could see there is no relationship with tables.
    0