I have some texboxes od form, bound to DataTable1 and
DataGridView is bound to DataTable2. There is relation between DataTable1(Master) and DataTable2(Details).
How to clear all rows from DataGridView?
I've tried this:
For Each row As DataGridViewRow In DataGridView1.Rows
If...
Is there a way to customise IDE environment so when I'm working on form in design mode to have Properties pane visible, and when change to sorce view mode to automatically hide Properties pane and have more space for code view&edit.
I want to replace some texboxes on form with comboboxes because combobox have some properties that I need. For example: FormatString, databinding(DataSource, ValueMember, DisplayMember), ...
Howto hide dropdown button in ComboBox and DateTimePicker
In DataGridView (VS2005) if we choose DataGridViewComboBoxColumn there is property DisplayStyle and we can choose Nothing to hide DropDownButton.
Is there any way to hide dropdown button in ComboBox or DateTimePicker controls.
That works.
Sorry to bother you again, I have an idea, something like multicolumncombobox in DataGridView, but I don't know how to realize it.
I have DataGridView bound to datatable and some columns. Two columns are DataGridViewComboBoxColumn type and have the same ValueMember (ProductID) and...
Thank you for detailed answer, it's much clearer for me now.
I want to do some action when combo box list is droppped down. Combobox has event DropDown (Occurs when the drop-down portion of a ComboBox is shown).
I nedd to handle that event, but I don't how to do it with...
Regular ComboBox control has a property DroppedDown (Gets or sets a value indicating whether the combo box is displaying its drop-down portion).
DatagridViewComboBox sims to doesn't have that property.
How to indicate whether the DatagridViewComboBox is displaying its drop-down portion?
I have a textbox bound to datatable column(integer type). What user want is when number is for example 5, to show 0005, or 35 to show 0035 (4 places).
How to format textbox to get that.
I was trying this:
BrojOtprTextBox.Text.ToString("0000")
but it doesn't work.
I think that you need Update method, DataAdapter.Update(dataSet, "dataTable")
something like this:
myAdapterlead.Update(NameOfYourDataSet, "myDatalead")
myadapterref.Update(NameOfYourDataSet, "myDataref")
I have tryed that method, but I don't understand how it works. It has 6 overloads. First overload is for example ContextMenuStrip1.Show(control, position). If I want to show ContextMenuStrip1 when form loads (Form.Load event) what control to put in...
I want to have vertical Menu docked on left side of the form (VB2005), and that is not problem. The problem is moving thrue menu. Now it's move with left/right arrow keys and with up/down opens submenu.
I want to move with up/down arrow keys and with enter key open submenu. How can I accomplish...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.