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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

ButtonClick event - DataGrid Control

Status
Not open for further replies.

StaceyG

Programmer
Aug 2, 2001
29
US
Microsoft says (see below) that you can drop down a VB control. Anyone know how??

The built-in button is enabled for a column when its Button property is set to True.

Typically, you enable the column button when you want to drop down a Visual Basic control (such as the built-in combo box, a bound list box, or even another DataGrid control) for editing or data entry. When the button in the current cell is clicked, the ButtonClick event will be fired. You can then write code to drop down the desired control from the cell.
 
I no have idea why u r asking for. Could explain better ur questions with real life examples to identify the problem and a the solution
 
Sure,
My client would like to update data in a grid form. So I was going to use a datagrid control. The datagrid control has a button property which allows a combobox type arrow to appear when you click into that particular cell. Then when you click that button it fires the ButtonClick event.
Microsoft says that you should then be able to have a combo box drop down from that cell so the user can make predetermined selections (vs. typing in a choice). However, I cannot find any documentation on how to achieve this. So, I am wondering...does anyone know how to do this? Or, I am open to alternative suggestions here. The field in question for me is a Yes/No (checkbox) field, however, it shows up in the datagrid as 0 and -1 which is pretty messy for a user to deal with. I was hoping to change the 0,-1 to a Yes/No drop down combo box, but again I am entirely open to suggestions here. Hope that explains a little better
Stacey
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top