Questions tagged as 'c#'

1
answer

Create a WebService in ASP.NET that returns indefinite number of columns in a database

Normally this is the structure of a WebService that I use in a project, but now I need to bring all the columns of a table that can have N number of columns, in the example I only receive 4 columns that exist, but what happens when I have 12, 15...
asked by 05.10.2018 / 03:36
2
answers

.Net leave Combobox option selected by default

I have a combobox that takes the DataSource of an Enum, the order of the enum I do not like, but I can not modify said enum, I would like to have an option (the third one) preset by default in the combobox. How could I do it? I ended up using...
asked by 18.07.2018 / 23:23
2
answers

Change the name in my url of the MVC4 controller

I need to change my Url: localhost: 44301 / service by localhost: 44301 / product service is the controller, I just want to change its name by product but keep calling service.     
asked by 29.11.2018 / 19:50
1
answer

Change default image DataGridView Image column C #

Hi good as I indicate in the title what I want is to remove the image with the X, I have not found anything on the Internet that serves me or I can think of anything anyone knows how to change that default image by another that I indicate? I...
asked by 19.07.2018 / 12:33
1
answer

Pass gridview data (child form) to parent form textbox

Hello, good morning everyone, I have the following problem: in FORM_A I have a button from where I call FORM_B, which has a datagridview. I need to doubleclick a row in the datagridview in FORM_B to pass those values to the textboxes of FORM_...
asked by 23.07.2018 / 17:51
1
answer

How to consume https json with webform asp.net c #?

Good I would like you to help me I am wanting to consume a service HTTPS . Realizing with asp.net webform. For which I am doing with jquery json I have been reading the documentation and it indicates that you have to use JSONP. link Wha...
asked by 09.08.2018 / 18:24
2
answers

filter by colunna towards sql server

I need to be able to make a query in which I must filter by column, in which I have serial, date, among others, in order, that the query will show me results that are within that column. The code in c # that I am using and that works for me i...
asked by 31.07.2018 / 18:15
1
answer

Change color datagridviewbutton

Good I'm doing a form in C #. When another window returns a dialog.result.OK I want to change the background color of the% button DataGridView , in this case to green some simple solution?     
asked by 10.07.2018 / 13:00
1
answer

Update UI inside backgroundworker in endless thread with C # and WinForms

I have an application made in Windows forms that is responsible for searching infinitely in a database for tasks to perform. When I execute the code inside the Constructor of the form, it works but at moments it stops when launching new threa...
asked by 05.07.2018 / 17:17
1
answer

error 'EditItem' is not allowed for this view when applying a filter to a WPF data grid

I see this error in a DataGrid when using a textbox to find a name that shows me what it finds but when clicking on the cell I want to edit that error appears. when loading the window if it works but when using a filter and load the result the r...
asked by 28.06.2018 / 21:05