Removing datagrid row

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

    Removing datagrid row

    I have a Windows Forms app with a datagrid that binds to an XML data island.
    Upon double-clicking a row in the grid, I want that row to simply disappear
    WITHOUT having to rebind. What's the easiest way to do this? Thanks.


  • Noah Coad [MVP .NET/C#]

    #2
    Re: Removing datagrid row

    If the DataGrid is bound, you will need to remove the row from the data
    source. The control will automatically update. You can not simply hide the
    row when it is bound without removing the data. You may try just making
    that row's height = 0 which would appear like it is hidden.

    Cheers,

    - Noah Coad -
    Microsoft MVP

    "FusionGuy" <sbearusa at msn dot-com> wrote in message
    news:V6udnRWWx5 6y-vHdRVn-hw@comcast.com. ..[color=blue]
    > I have a Windows Forms app with a datagrid that binds to an XML data[/color]
    island.[color=blue]
    > Upon double-clicking a row in the grid, I want that row to simply[/color]
    disappear[color=blue]
    > WITHOUT having to rebind. What's the easiest way to do this? Thanks.
    >
    >[/color]


    Comment

    Working...