Rene,
MyTable.DefaultView.AllowNew = false
Where MyTable is the table bound to the grid.
~~Bonnie
>Hi All,
>
>When we run the windows form with datagrid by default the grid display the first rows with NULL values.
>I only want to display the row when the user click the Add button. By default you can type to the first row in the grid.
>The same also if I display some records in the grid. There is a row in the bottom with NULL value.
>
>How I can prevent this? Anybody have a sample code?
>
>
>Thanks,
>
>Rene