How to make empty grid cell clickable in Asp.net Grid? [closed] - c#

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 7 years ago.
Improve this question
I have an Empty Grid View. When I click on each grid cell I want to add a pop to add items.Kindly give some idea to make my grid cell clickable.My grid view is
please help me

A little bird told me you already have labels inside. SO instead of these you can put Buttons or even better LinkButtons, and depending on how your GridView is created (from the Toolbox or code behind) you can set your Buttons to be clickable like so
LinkButton.Click += new EventHandler(LinkButton_Click);
Set their ID or CommanArgument to be something meaningful to you, and have everything done only trough C#.
BUT since you want to execute a POP (up ?) maybe the best case scenario for you is to workout how to call fancybox and then have
yourLabel.Attributes.Add("onClick", "Fancybox(this.id");
to open a pop-up.

Related

How I can make an Autocomplete TextField in WPF? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 6 years ago.
Improve this question
How I can make an Autocomplete Text Field in WPF?
How I can include multiple value in text field.
Actually I'm trying to make an search bar in which Products are fetched from database and include in text field then.When i type a keyword it should be display an suggestion.
Re-template ComboBox to make it looks like TextBox.
Extend ComboBoxItem so that we can hightlight the already entered part in the dropdown list.
Get reference to the TextBox part of the ComboBox, and hook up TextBox.TextChanged event.
In the TextBox.TextChanged event handler, we filter the underlying datasource and create new list source with our customized ComboBox Items.
Hope this will be helpful.
Thank you

Move WinForm some controls to another WinForm using partial classes in C# [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 1 year ago.
Improve this question
I have a WinForm which has many panels, and each panel has many controls, which make it very hard to handle the design of this form, how to move each panel to a new form and return all panels to the main form at runtime?
Creating a UserControl will help modularize your user interface. You should create one user control per panel let's say and then use those user controls in your form.
The nice thing about UserControl is that they are reusable and can
be designed (visually) just like the Forms are designed.
You can refer to this below link to know more about UserControls for WindowsForms:
https://msdn.microsoft.com/en-us/library/aa302342.aspx

About ListBox limit item [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 6 years ago.
Improve this question
Hello everyone,I am new here, can I ask a question:
Let's say I have a ListBox (with more than 5k items of all English words ). and a richTextBox.
And a ListBox usually load every items, right? How can I change my ListBox to just load/pick a few (maybe 10 items) from the data?
EXAMPLE:
**When a user type a word, I dont want my ListBox to load every thing starting with the word my user input. I just want my ListBox to load just a few item.(More to like a word prediction software) **
Please give an answer that is not too complicated, since I am a beginner.
Thanks, Teik Fai.
From your question, it looks like you need to implement virtualization on the listbox.
You can either use a VirtualizingStackPanel inside a Listbox as ItemsPanel Template or you use - ItemsControl and set its property VirtualizingStackPanel.IsVirtualizing="True"
This should help.

C# - best way of creating a program with multiple forms/windows? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 7 years ago.
Improve this question
Here's what I'm trying to do:
I have a main form and I added a UserControl named menu to it. Here's how it looks:
http://prntscr.com/a5dx0e
Now what I want is: when I select an item from the menu, the content below the menu will change without loading another form.
I could do that but the user would see a window disappearing and another appearing and that's kinda ugly.
What I really want is to replace the content based on the menu item clicked.
The best way I found was to create multiple UserControls and then just replace them with the right one. Is this a good idea or are there any better solutions?
Please note that I'm a starter in C# and I'm looking for the easiest solution.
Use the tab control and hide the tab header. Control the navigation amongst the pages programmatically when user clicks a menu. I've used this technique successfully in the past.
Choices,
hide/reveal panels (ways to collect/group all of the controls you are hiding revealing now)
Use a multi-tab control
Use an MDI (multi document interface) control
Use multiple forms, but display the new one first, then hide the prior one.

Display info on page by list and or title altered by toggle button [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 9 years ago.
Improve this question
I am not sure what to look for or how to look for examples for this so any assistance will be greatly appreciated.
I have a view page that displays a list of users by their name and then little icons for email - picture - profile page.
I want to create a toggle button on the page that will change the display page for the users and display them by the user picture and then little icons for email and profile.
Are there any examples with this feature?
I am using asp.net mvc4 c# VS2012. Thanks
If you have a controller that provides getting people data, then simplest way to reach your goal is to create two different views (one with display list of users by their name and another with display by user picture). Then toggle button may be just the html link to another view.

Categories