Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
55
Creating of Grid with child band
posted

Hello,

I want to create the data grid using win grid with one table.

I have Employee table with EMployeeId, EmployeeName,BasicSalary.

I want to display these details in the grid.

EmployeeId and EmployeeName in Band[0] and BasicSalary in Band[1] which is the child band.

I am using self join query for to retrieve the details i.e.

SELECT t1.EmployeeId, t1.EmployeeName, t2.EmployeeId, t2.BasicSalary

FROM [Employee] t1 FULL OUTER JOIN

[Employee] t2 ON (t1.EmployeeId = t2.EmployeeId)

How can I design the data grid and bind this data table to grid.

Please help by providing the source code for this.

We are using C#.Net for our Windows application.