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.

Parents
  • 55
    posted

    Thanks for the reply. 

    I have created Grid with Band[0] and Band[1] as child band.

    I have taken two tables in the data set and taken details from single data table in to this data set. The data set is showing with the all the details in to 2 tables.

    But I am getting the following error whilt binding the data to the Wingrid.

    ""Child list for field Band 0 cannot be created."

    Please help me in resolveing this issue.

Reply Children
No Data