PC Review
Forums
Newsgroups
Microsoft DotNet
Microsoft Dot NET Framework Forms
Remove last raw on dataGrid
Forums
Newsgroups
Microsoft DotNet
Microsoft Dot NET Framework Forms
Remove last raw on dataGrid
![]() |
Remove last raw on dataGrid |
|
|
Thread Tools | Rate Thread |
|
|
#1 |
|
Guest
Posts: n/a
|
Hi,
Does anybody know how to remove the last raw on a dataGrid control on a Windows form? This raw is empty with a star sign on the first column. When I click it some data become null. Thanks for any help, CT |
|
|
|
#2 |
|
Guest
Posts: n/a
|
Hi Chi,
You can disable this row by doing the following: CurrencyManager cm = (CurrencyManager)dataGrid.BoundContext[ dataGrid.DataSource, dataGrid.DataMember]; DataView theView = (DataView)cm.List; theView.AllowNew = false; This code should be executed right after the grid has been bound to a data source. -- Dmitriy Lapshin [C# / .NET MVP] X-Unity Unit Testing and Integration Environment http://x-unity.miik.com.ua Deliver reliable .NET software "Chi Tang" <chikuotang@hotmail.com> wrote in message news:O4moXT0ODHA.2316@TK2MSFTNGP11.phx.gbl... > Hi, > > Does anybody know how to remove the last raw on a dataGrid control on a > Windows form? This raw is empty with a star sign on the first column. When > I click it some data become null. Thanks for any help, > > CT > > |
|
![]() |
|
| Thread Tools | |
| Rate This Thread | |
|
|

Main Page 

