[x]
Posted via EE Mobile

Search, ask, and monitor your questions on the go with EE Mobile. Visit Experts Exchange from your mobile device and never be out of touch again.

Question
[x]
Attachment Details

Customise Datgridview cell in an unbound column

Asked by northfields in Microsoft Visual C#.Net, Miscellaneous Programming, C# Programming Language

Tags: Datagridview, datagridview column

Hi

I have an unbound column in a datagridview, the data in this column will be inserted into the database.

1) How do you format a cell in the unbound column so that it can host a combobox or textbox   depending on the value of the adjacent cell.
For example, if the adjacent cell has a value of 1, a combobox must appear in the unbound cell, if the value is 0 then a textbox must appear in the unbound cell.

ALSO:The combo box must be populated on the fly and be able to take an ID value from the 1st column (databound) to populate it with the correct values.

AND when the data in the unbound column is inserted into the database, the value member of the combobox must be inserted.

If i could make this worth a 1000 points i would, it is that important to me.

Thanks in advance
[+][-]11/05/09 09:59 AM, ID: 25752080Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]11/05/09 10:00 AM, ID: 25752093Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]11/05/09 10:23 AM, ID: 25752313Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]11/05/09 10:37 AM, ID: 25752444Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
 
Loading Advertisement...
20091021-EE-VQP-81 - Hierarchy / EE_QW_3_20080625