Hi All,

Is there a way to avoid the DataGrid from adding new line in it.

I managed to do it by doing the following:
dg1.ReadOnly = True, but the problem in this the user will not be able to change any existing data in it.

Thanks for the help.