Re: DataGrid & Invoicing App.

Tech-Archive recommends: Speed Up your PC by fixing your registry

From: Suzette (anon_at_hotmail.com)
Date: 04/28/04


Date: Tue, 27 Apr 2004 18:32:08 -0700

Hi Jonathan,

It might be easier to have a combobox where the product column is. Create a
combobox and connect it to your items. Set the visible property to false.
When the user enters the product name column, move the combobox to fit the
row that the user is in. Make the combobox visible and set the focus to it.
When the user exits the combobox, put the item in that field. They can then
tab to the quantity field and enter their quantity. It will look much
cleaner that way. That's the way I do any lookup for a datagrid.

Sue
"Jonathan" <jonathan.els@absamail.co.za> wrote in message
news:e5Snj7KLEHA.4032@TK2MSFTNGP10.phx.gbl...
> I am developing an invoicing application, and would like to know the most
> efficient way to add a product selection into a DataGrid. DataGrid only
> displays the following fields : Quantity, Product Name, Unit Price
>
> As the program stands, the user will select the "Add Product" option, and
> another form will come up with a list of all products available. User
> selects product and quantity and adds the product to the invoice.
Selection
> will appear in the datagrid on the invoice form. Can anybody suggest the
> best way of accomplishing this. Any sample apps or code would be
> appreciated.
>
> Regards,
> Jonathan
>
>
>



Relevant Pages

  • ComboBox in DataGrid
    ... I have integrated a combobox into the datagrid. ... when I try to use keyboard to control the datagrid, ... private ComboBox internalComboBox = new ComboBox; ... private int rowNum = -1; ...
    (microsoft.public.dotnet.languages.csharp)
  • Change to combobox lost when trying to update datatable
    ... I've got a form with a datagrid that displays a list of items, ... programmatically change the value of the status combobox to the ... correct value and then call the SaveItemGridChanges Sub. ... I manually change the status and the click the save button (which just ...
    (microsoft.public.dotnet.languages.vb)
  • Re: VB 2005 Newbie - Binding?
    ... Can you show the binding to your combobox in true code, ... and the Combo Box`s are outside the Datagrid. ... SelectedItem: M_BTADSLBindingSource - LocationsID ...
    (microsoft.public.dotnet.languages.vb)
  • Re: VB 2005 Newbie - Binding?
    ... Can you show the binding to your combobox in true code, ... and the Combo Box`s are outside the Datagrid. ... SelectedItem: M_BTADSLBindingSource - LocationsID ...
    (microsoft.public.dotnet.languages.vb)
  • RE: DataGrid: Custom ComboBox column problem
    ... DataGrid: one time for the current cell, and then immediately for the newly ... > for setting the DataSource of the ComboBox that edits the value. ... > internal class PropertyComboBoxColumn: DataGridTextBoxColumn ... > private void DataGrid_Scroll ...
    (microsoft.public.dotnet.framework.windowsforms)