On Wed, Apr 13, 2011 at 2:52 AM, Cerebrus <[email protected]> wrote:
> Yes, it has been a long while since I've touched Winforms too.
>
> It's unclear how you are binding the Datagridview. Additionally are
> you using "autogeneratecolumns" ? If not, then you would need to add
> the columns manually to the DGV columns collection. Each column would
> display its "HeaderText" property value as the caption.
>
> Please revert if this is not what you're talking about.
--------------------

I have figured out how to generate my display, now just getting the
hook to identify in a dropdown per line that it says UNASSIGNED or
shows the Corp name that the existing data has.

I am close.

            DataGridViewComboBoxColumn assignedToColumn =
                new DataGridViewComboBoxColumn();

            // Populate the combo box drop-down list with Corporate objects.
            foreach (Payers pl in Payers) assignedToColumn.Items.Add(pl);

            // Add "unassigned" to the drop-down list and display it for
            // empty AssignedTo values or when the user presses CTRL+0.
            assignedToColumn.Items.Add("unassigned");
            assignedToColumn.DefaultCellStyle.NullValue = "unassigned";

            assignedToColumn.Name = "Assigned To";
            assignedToColumn.DataPropertyName = "CorpID";
            assignedToColumn.AutoComplete = true;
            assignedToColumn.DisplayMember = "CorpName";
            assignedToColumn.ValueMember = "CorpID";


How do I bind the Value member for the list to the value in the grid
column CorpID?

TIA

-- 
Stephen Russell

Unified Health Services
60 Germantown Court
Suite 220
Cordova, TN 38018

Telephone: 888.510.2667

901.246-0159 cell

-- 
You received this message because you are subscribed to the Google
Groups "DotNetDevelopment, VB.NET, C# .NET, ADO.NET, ASP.NET, XML, XML
Web Services,.NET Remoting" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/dotnetdevelopment?hl=en?hl=en
or visit the group website at http://megasolutions.net

Reply via email to