It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 10 years ago.
When the user right clicks a DataGridView cell in my windows application it clears and fills the CheckedListBox with column header text. Then it shows a popup. Now how can I sort the items using what is checked? I want to sort on the same right click.
To sort the listbox, you need to write your own small code, which "tells" the program how to sort your data.
Please refer this tutorial
Related
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 9 years ago.
In ASP.NET, I have a dropdown and a button. If I select a value from the dropdown and click the button, I want it to redirect to another page and pass the selected value from the dropdown to this new page.
If anyone has an idea then please help me.
Try this on button click event
string strddlValue=Convert.ToString(DropdownList1.SelectedValue);
Response.Redirect("YourPage.aspx?Value=" + strddlValue);
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 10 years ago.
In my online course I'm asked to put a label (lblQuestion with accelerator) and ComboBox on a form.
Putting a label and a combo box on a form is simple enough in VS 2010, but I am not sure what an accelerator is and how I use it?
For setting an accelerator you will use & character in front of the letter of your label, that you need to make available as an accelerator. See here: http://blog.csharphelper.com/2012/05/30/use-accelerators-on-labels-and-buttons-in-c.aspx for more details.
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 12 years ago.
I have a textbox and some buttons on a form in my windows application.
The user can enter his data either from buttons or from the textbox.
I want the buttons to look like they are being clicked when the user enters the data from the text box.
I mean while the user is typing in the textbox the related buttons look like they are being clicked.
I am using .Net and c#
Thank you.
I believe I understand your question correctly:
You will need to create an event that triggers when someone types in the textbox(s), and then use btnName.Enabled = false in the event function.
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 12 years ago.
I am fetching data from database and i am showing it in multiple select box but i want to show location 1,3,5 items should be selected by default. How?
Bind the Listbox to the datasource. A google search will probably be helpful.
If you mean "how do I select specific items", then this so question will help.
In WPF, you can use the ListBox control.
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 9 years ago.
Hai,
Am using DevExpress Tree List in C#.NET application .I want to add checkbox control in DevExpress XtraTree List.Please help
Thank you.
You should set the column's ColumnEdit property to an instance of the RepositoryItemCheckEdit class. For more details, please refer to
http://documentation.devexpress.com/#WindowsForms/CustomDocument5632
http://documentation.devexpress.com/#WindowsForms/CustomDocument5633