james-ct16
asked on
.net Datagrid question, Stop add new row when editing
hi
very quick question, the answer in fact is problably only one line but i will be damned if i can find it. I have a datagrid which has a button to add new data from a custom dialog. I allow editing in the datagrid itself, what i dont want is to allow users to be able to add a new row from the automatically generated new row element at the bottom of the datagrid.
The reason for this is that this data contrains filenames which i want some level of validation over.
regards
james
very quick question, the answer in fact is problably only one line but i will be damned if i can find it. I have a datagrid which has a button to add new data from a custom dialog. I allow editing in the datagrid itself, what i dont want is to allow users to be able to add a new row from the automatically generated new row element at the bottom of the datagrid.
The reason for this is that this data contrains filenames which i want some level of validation over.
regards
james
Use a dataview as your datasource for the grid and set dv.allownew = false
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
thankyou for your help
james
james