Facing Problem in WinForm Data Grid

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • sai dev

    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.

  • Nicholas Paldino [.NET/C# MVP]

    #2
    Re: Facing Problem in WinForm Data Grid

    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]
    - mvp@spam.guard. caspershouse.co m


    <sai devwrote in message news:2008112094 14saidev.mohapa tra@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.
    >

    Comment

    Working...