Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Request for further help in Adding ComboBox to DataGrid control

Status
Not open for further replies.

raabbasi

Technical User
Jun 21, 2005
52
PK
I tried the solution for "Adding ComboBox to DataGrid control" posted on 16th. November. I could not understand the DataGrid part of it.
I dropped a DataGrid control & a ComboBox control on the form at design time and populated them with data at run-time.
Both the controls are displaying data as expected, but the ComboBox is not interacting with the DataGrid control - that is it does not sit into the clicked cell, the value selected from the ComboBox does not modify the DataGrid cell, and it does not hide when left.
I am not clear on the DataGridTableStyle & the DataGridTextBox classes.
Please help.

R. A. Abbasi
 
There are two solutions in that thread, three if you count the ASP.Net solution. You will need to explain exactly what you have tried and what doesn't work (code-wise)


Hope this helps.

[vampire][bat]
 
I have copied the DataGridCboBoxColumn class into my project and tried to use it on Windows Form as suggested by cmn2 on 16 Nov 05 in this forum. Let me repeat the rest of my problem:

I dropped a DataGrid control & a ComboBox control on the form at design time and populated them with data at run-time.
Both the controls are displaying data as expected, but the ComboBox is not interacting with the DataGrid control - that is;
?It does not sit into the clicked cell.
?The value selected from the ComboBox does not modify the DataGrid cell
?And it does not hide when left.

I am not clear on using the DataGridTableStyle & the DataGridTextBox classes (if they are needed in this code).

Any help will be appreciated.

R. A. Abbasi

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top