Questions tagged as 'c#'

1
answer

Fibonacci applied to the Score system

Good! I am in a situation where I must apply the Fibonacci assignment in a scoring system. The exercise sounds simple, but I'm not finding the best way to do it, so I decided to buy opinions I have something done so far. But with one...
asked by 05.02.2016 / 23:01
2
answers

Register registration MVC

I am working on a MVC project public class EmpleadoController : Controller { private readonly SdEmpleado _empleadoRepository = new SdEmpleado(); // GET: Empleado public ActionResult Index() { return View(); }...
asked by 05.09.2016 / 06:07
1
answer

Button Remove c # form button

Hi, I want to make the selected rows be eliminated so you look at the interface This is the code I have but it is not private void BtnQuitar_Click(object sender, EventArgs e) { if (DataGridViewSelectionArea.SelectedRows == n...
asked by 02.01.2019 / 23:59
2
answers

How do I fill the columns of my datatable with different string type lists in C #?

I would like to know what is the correct way to properly fill a datatable I have, the question is that I must fill it with different lists where I have my information, now my datatble looks like this: What I want is that column 2 is at...
asked by 02.01.2019 / 22:38
1
answer

Paint full row of a grid [closed]

I am here to consult the following, I use this to paint on the grid according to the condition I assign, but I am only painting that cell, I would like to paint the entire row, I was looking for information but I did not find if there was one I...
asked by 21.12.2018 / 22:49
1
answer

date range datepicker c #

I have a problem, I need to filter two dates from a table in the database and I could not, to see if they can guide me, it's in c #, my controller public ActionResult Report(DateTime? start, DateTime? end) { using (var db = new bd_...
asked by 20.12.2018 / 20:18
1
answer

Because when I want to delete the value of a variable in c #, does it mark me an error?

The problem is that every time I enter an if created I must delete the floating variable where I store information, only that information is every 3 months and I get information every 12 months, which requires is that when I enter the if it mean...
asked by 23.09.2016 / 21:23
1
answer

Select records according to ID with EntityFrameWork

New work and the test is as follows I have this function that receives a parameter of type (DbGeography) which selects a set of results and returns a list, now what I need is to change the parameter by (int RestaurantID) and make the same sel...
asked by 23.09.2016 / 17:31
1
answer

It is field but it is used as type [closed]

I'm trying to generate a list in C # but when I try to use the add method it throws the error "It's a field but it's used as a type" I do not understand what it means. Could you help me? this is my code List<Area> areas = new List<Ar...
asked by 28.09.2016 / 20:37
1
answer

Array problem with data coming from a TextBox

The inconvenience occurs when I try to display the content of my array in a Label . The data I try to display of array comes from a TextBox , and they are numeric, since basically what I did was try that when the use...
asked by 28.12.2018 / 18:41