By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,968 Members | 1,843 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,968 IT Pros & Developers. It's quick & easy.

Facing Problem in WinForm Data Grid

P: n/a
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.

Nov 20 '08 #1
Share this Question
Share on Google+
1 Reply


P: n/a
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.

--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com
<sai devwrote in message news:20**************************@wipro.com...
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.

Nov 20 '08 #2

This discussion thread is closed

Replies have been disabled for this discussion.