473,614 Members | 2,342 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 2057
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.co m
<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
983
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 will be any number of 'queries' - that are made against the orignal data table ex: string strFilter="transactiontype='ERROR'" System.Data.DataRow errRow=dsOrig.Tables.Select(strFilter) I made a new table, made one column a key - because I want...
3
1975
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 also about 6 fairly standard reports. This project is supposed to be done in C# Winform with ADO.net and using MSDE, ActiveReports.Net. I had judged that it would take maybe a month to do the system. Number of users at 1 time should not exceed 10....
4
15966
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 had in the form, but the textbos isn't refreshed. Exemple code from my button click event: dataset1 = helper.GetUser(6);
4
2881
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
2378
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 things. The method I am writing queries a large dataset. As part of my feedback to the user, I am updating the status bar when the connection is made and the dataset is actually retrieved. The dataset retrieval method I have placed on a separate...
3
7271
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
2825
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 issue...also our clients would like to use a lot of client side events like sorting, searching text, save each row on tab out of a row, use the auto correct feature... after intial r&d we feel that using a Grid Control in WinForms would be a...
1
6641
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. QarBusTier.DefectFoundLocation DFL = new QarBusTier.DefectFoundLocation(); System.Data.DataTable DFLTable = DFL.LoadAll();
3
1885
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. Is this possible in a WINFORM in vb.net 2003 ?
0
8640
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
8287
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8443
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7114
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5548
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4058
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4136
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2573
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1757
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.