473,406 Members | 2,847 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

Facing Problem in WinForm Data Grid

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
1 2035
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: andrewcw | last post by:
I have a dataset that comes from an XML file with schema. I take the table and make it the souce for the grid I am fine Now I am trying to create another table to switch into the grid. The table...
3
by: Skc | last post by:
My client's project consists of about 6 files maintenance programs that uses WinForm and grid for updates with lookup finders for each file. There is also a User file and security. There are...
4
by: Alex Bibiano | last post by:
I have a typed dataset in my WinForm and a textbox with databinding to the dataset (all without code). Now, in a button event, I assign a new dataset (retrieved from a function) to the dataset a...
4
by: Vai2000 | last post by:
Hi All, I have a dataview binded to a datagrid. I do some filter on the view, how can I get the filtered list displayed on the DG in my code The DG is on Winform TIA
3
by: Elliot Rodriguez | last post by:
Hi: I am writing a WinForm app that contains a DataGrid control and a StatusBar control. My goal is to update the status bar using events from a separate class, as well as some other simple...
3
by: Mike L | last post by:
For a Data Grid in a Win Form, when the user selects a row and then presses the Enter key, how do I capture that the user pressed the enter key?
8
by: Sunil Menon | last post by:
Dear All, We are developing applications in ASP.Net...in one of our applications we would like to use a GridControl...we have tried to use a Server-Side Grid control but found the speed to be an...
1
by: Dale Williams | last post by:
Everyone: Using C#, I'm trying to create a datagrid on a winform programatically. I placed the datagrid and the form and named it CHGrid. Here's the code I'm using: // Get and bind the data....
3
by: Gordon | last post by:
Hi; Can you add a column of button controls to a winform datagrid ? I have a form with three independant grids. I would like to add buttons i.e. update, add buttons at the end of each row....
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.