C# .NET - ComboBox Column in datagrid winforms

Asked By Seregey K
04-Dec-04 05:01 AM
I have a combobox column in datagrid, a column derived from datagridtextboxcolumn,
with overriden methods commit, edit, leavecombo for combobox, declared as a variabile -- standart aproach to this problem. I have problems with horizontal scroll of datagrid, it doesn't hide, if I put for grid event onscroll myComboBox.hide() for example, it blinks while scrolling.  When I scroll datagrid, I need the end of edit session, or something with hide(), but without blinking. Please help.

Abort()  Abort()

23-Dec-04 05:39 PM
Did you try to call Abort() on DataGridColumn if you are in edit mode?
Create New Account
help
How to show necessary record in ComboBox I have a combobox. ComboBox shows records from DataSource(his name is StudentDataSource). For example, ComboBox has such records from DataSource: 0. pupil 1. student 2. engineer When form loaded, then combobox shows empty row. How to show necessary record since form was loaded? I want to show ComboBox with record "student", when form is loaded. How to show necessary row in ComboBox?:) on form load event write this to set the index private void Form2_Load( object sender Dipa:). I done my task:) Create New Account keywords: How, to, show, necessary, record, in, ComboBox description: pI have a combobox. ComboBox shows records from DataSource(his name is StudentDataSource). For
ComboBox Paste .NET Framework Hi How can i disable Paste on ComboBox? ComboBox DropDownStyle is DropDown. ComboBox must accept only numbers. I know how to handle keypress event to accept only digits, but how to disable paste? Best regards; Mex C# Discussions DropDownList (1) ComboBox (1) WndProc (1) DropDownStyle (1) DropDown (1) Tarek (1) Mex (1) Keypress (1) Mex, Well you can subclass the ComboBox and handle the WM_PASTE message in your overriden WndProc method. However, I would say that DropDownList, i think its better. - -- -- -- -- -- Tarek M. Siala Software Developer http: / / tarksiala.blogspot.com keywords: ComboBox, Paste description: Hi How can i disable Paste on ComboBox ComboBox DropDownStyle is DropDown. ComboBox must accept only numbers. I know how to handle keypress
ComboBox binding to DataTable. SelectedValue problem. . . .NET Framework Hi guys, I have a comboBox binded to DataTable: comboBox.DataSource = MyDataTable; comboBox.ValueMember = "id"; comboBox.DisplayMember = "id"; Than in my code I need id = 3 to be selected in the comboBox. So I have a code: comboBox.SelectedValue = 3; I don't have any event or any code after that may change the SelectedValue, but in result I get wrong id shown in the comboBox!!! Does anybody meet such a problem? How can I resolve it? What's wrong here
that field Word I have a form with 8 rows of 5 objects. Namely a combobox | textbox | combobox | combobox | textbox These objects are named: combobox (1 to 8) textbox (1 to 8) combobox (1 to 8) and so on. All the rows except for the first row of I have a userform. On this userform i have several objects. the first objects are combobox, textbox, combobox, combobox and a textbox which are standing beside each other. under these objects i have again