Link to home
Start Free TrialLog in
Avatar of james-ct16
james-ct16Flag for Australia

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
Avatar of RonaldBiemans
RonaldBiemans

Use a dataview as your datasource for the grid and set dv.allownew = false
ASKER CERTIFIED SOLUTION
Avatar of RonaldBiemans
RonaldBiemans

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of james-ct16

ASKER

thankyou for your help

james