How to do list with buttons c# [closed] - c#

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
I am making a WindowsFormsApplication in C# and I want to make a list that looks like that:
# Item Edit Delete
1 Item1 [E] [X]
2 Item2 [E] [X]
3 Item3 [E] [X]
and I want to make [E] and [X] to be clickable buttons. How to do that? I'm relatively new to this so please be gentle

Hugo is correct DataGridView will do it.
If you look at the Columns property you can define the column types, the default is for text but there is a button type too.
When the click event is triggered you can check the selected row/column properties to deduce which button was clicked.

Related

listbox, listview or datagridview [closed]

Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 6 years ago.
Improve this question
I am making a C# windows forms application to simulate a shopping
basket. So the user can add items to the basket by entering the product name, quantity and price.
This will also be a remove button to remove items, and and edit button
the edit prices and quantities.
The user will get to see their basket at all times with 4 columns,
Item Name, Quantity, Single Price, Total Item Price.
Which would be more appropriate to use, a listbox, listview or datagridview?
Since you want to add Buttons to your control
I would use the DataGridView because it is easier to add Controls
ListView and ListBox don't support adding controls.
You could use them with a ContextMenuStrip

How to create Numeric UpDown in UWP? [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 7 years ago.
Improve this question
I am creating a derived class of TextBox for numeric data entry. I would like to add 2 buttons at the right side, like the X button in some TextBox controls to increment or decrement the value.
How can I do it?
What you are looking for is a Numeric Updown. See this question for how to implement your own
Where is the WPF Numeric UpDown control?

WinForm/C# - Add data in a DataGridView [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 7 years ago.
Improve this question
I need some control which can change data row or can add new data row in a DataGridView.
You knwo we have two ways: one using the same row of the gridview and second to have some gridcontrol which when we click in the row of the grid expands the control to set data and save t to the grid. And in new data the same. Like in Telerik but using a free control.
Second case it is what I am looking for.
Could you please tell me the best control to do this?
If i understood you correctly, this is what you are looking for.

how can I multi select items in listbox with wp7 [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 9 years ago.
Improve this question
I'm trying to code a listbox which you can select multiple items.
ContactResultsData.SelectedItem = ContactResultsData.Items[0];
This code is useful for selecting one item. But I want to multiselect. how can I do? thanks.
note: my selection mode of listbox already is multiselect .
Use collection SelectedItems to add items, remove items or do smth else with selection
ContactResultsData.SelectedItems.Add(ContactResultsData.Items[0]);
ContactResultsData.SelectedItems.Add(ContactResultsData.Items[1]);

iTextSharp check RadioGroup field [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
I have a PDF with radiogroup field and I want to select programmatically a radio within that radiogroup.
Ayone can help please.
Thanks
In Java: http://itextpdf.com/examples/iia.php?id=122
In C#: http://kuujinbo.info/iTextInAction2Ed/index.aspx?ch=Chapter06&ex=FillDataSheet
It's as simple as this:
form.SetField(key, value);
Where key is the name of your radio field, and value one of the possible values of your radio group. If you don't know which values are possible, take a look at the following example:
Java: http://itextpdf.com/examples/iia.php?id=121
C#: http://kuujinbo.info/iTextInAction2Ed/index.aspx?ch=Chapter06&ex=FormInformation
string[] states = form.GetAppearanceStates(key);

Categories

Resources