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" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> 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
>
>