Facing Problem in WinForm Data Grid

  • Thread starter Thread starter sai dev
  • Start date Start date
S

sai dev

Hi,

I am facing problem in following scenario for WinForm Data Grid.

Scenario
---------
-- DepartNumber DepartmentName
+ 10 HR
+ 20 Sales

-- DepartNumber DepartmentName EmploeeName
- 10 HR
Saidev
Manas
Rajesh
+ 20 Sales


I need the above scenario. When we click on the expand button of the dept number then all the employee will be shown in the next rows. On click on the any department CHECK BOX all the emplyee CHECK BOXES on that department will be checked and viceversa.
 
sai dev,

You can't really do this with the WinForm data grid. You would need a
third-party grid that allows for the display of child information.

If you can use WPF interop in your project, you might want to check out
XCeeds WPF Data Grid, as I would be pretty sure that it allows for
composition of controls (it's a general WPF feature) and you could easily
create the heirarchical rows in your example.
 
Back
Top