I have a list of 20 items. Each item can have a different price. I want to display the list with prices in a scrolling list that displays the item name, and allows the user to view/edit the price (don't allow the user to edit the item name). The list of items and prices is being read from a database table.
I have it working well with a DataGrid except for one minor issue. When the DataGrid is not in ReadOnly mode (so that the user can edit the price for each item), they can click at the bottom of the datagrid and it creates a new row in the list. I don't want them to be able to create a new row in the list!!! If I make the DataGrid ReadOnly, then they loose the capability to edit the price.
This is a Windows Forms DataGrid, not a Web form.
Any suggestions ?
I have it working well with a DataGrid except for one minor issue. When the DataGrid is not in ReadOnly mode (so that the user can edit the price for each item), they can click at the bottom of the datagrid and it creates a new row in the list. I don't want them to be able to create a new row in the list!!! If I make the DataGrid ReadOnly, then they loose the capability to edit the price.
This is a Windows Forms DataGrid, not a Web form.
Any suggestions ?