Quantcast
Channel: Windows Forms Data Controls and Databinding forum
Browsing all 2535 articles
Browse latest View live

C# Winform Rows cannot be programmatically added to the DataGridView's

I have 2 DataGridViews Grid 1 is populated by importing an Excel file. I am trying to copy or clone 2 columns into DataGridView2.My error is on this line :  dataGridView2.Rows.Add(row);It is data bound...

View Article


How to filter datagridview using multiple combo boxes in C#?

Hi all! I am very new to coding and am trying to learn C# through little project. I spent a week or more trying to find solution, but although there is many threads, none of them made sense for me and...

View Article


Image may be NSFW.
Clik here to view.

C# rounding up or down in

How would I change this to round up or down ?I have tried everything but the correct one.Double, convert to double Trypharse, Math.Round Ceiling, Floor.not sure where to add it.Thanks //= AN2 * AO2...

View Article

connecting vb.net with msdatabase

which is the best method to connect ms database with vb.net when you want to save pictures

View Article

VB.NET Access data base asking from LINQ

I have a program where I have link Access datebase (Samochody). Right now I try to List all Cars with only BMW with first column (name: Marka). I write some LINQ ask but I have a problem, when I start...

View Article


VB.NET Add only one picture

I have picture brower but open whole folder and I want to make something that open only one specyfic file wiht have name "W". I do not have idea what can I change that it will be work. Private Sub...

View Article

DataGridView Sorting

I have a DataGridView that contains Two Columns I want to disable Sorting the cells in the first Column I already assigned the property sortedMode in the first Column to Not Sortable but the problem is...

View Article

Default Value is Unable to Save

Asalam Alaikum! (Greetings)I am trying ADO .Net to save and retrieve data from database to an adapter and show it on grid, and allow grid to all DML Functions. In Database, I provide DMLDate Column,...

View Article


C# Masked TextBox Winform

I have a Masked TextBox in a Winform, it is currently set to phone number. I need it to accept letters also (125E4-GF215) 5 letters or Character then a dash then 5 Character like this format. I have...

View Article


Replace one character after the cursor position when pressing a number key...

Please help me, I'm having problems when using the MaskedTextBoxin winform.I built a class to format dates,I want to when I enter a number then will replace some behind the cursor.When I press a number...

View Article

Image may be NSFW.
Clik here to view.

How to read recently accessed files(docx,pdf,txt,etc.)

I WANT TO ACCESS THE DIFFERENT FILE FORMATS IN DATAGRIDVIEW THAT ARE RECENTLY BEING USEDI ALSO TRIED THE BELOW CODE TO GET FILES FROM RECENT FOLDER BUT DOES NOT HELP WHAT TO DO: string[] files =...

View Article

Image may be NSFW.
Clik here to view.

Replacing the / with \\ or \

SHAH BHAUMIK A.

View Article

Can I create multiple database files when I create an application with...

Create an application with Windows Forms.The database uses MS Access.Run the application on multiple computers.Can I create separate Accdb files for a running computer?

View Article


how to save checkbox as a true or false in database

hi, i am newbie in c# windows form programming. i am working on project that have too many checkboxes name as checkbox1, checkbox2, checkbox3 ..... checkbox63.how can i save, if user checked the...

View Article

C# Winform Access Database Reading Data

I have a Winform with a Access Database, I have used it for a Year now when I delete all the Data and delete the auto number column and set it back to primary the new data will not show in the...

View Article


Saving data of array

I have one question,i made a class with some strings,integers and array of another class that has some more strings and floats. They both have some complex operations under but its not relevant.Users...

View Article

Display master row and child row in DataGridView.

Hi,I want to display column1, column2 and column3 of sql database in DataGridView master row and column4, column5, column6 and column7 will display in expandable child row. Please help me.

View Article


DataGridView,Json,DeserializeObject and change values

i am getting a json and Deserialize it.i have classes :class RootObject { public EventInfo eventInfo { get; set; } public ItemID itemID { get; set; } public string customerId { get; set; } public...

View Article

Property in PropertyGrid is not updated until focused manually

Hello,I am trying to update a property value from a Form dialogue. This form dialogue is opened in the DoWork method ofBackgroundWorker. I have a custom type editor to update the property in the...

View Article

Two PropertyGrids Controls Synchronization

Hi,I have 2 PropertyGrid controls in my WinForm app. They are meant to compare two objects side by side, so what I want to do is to sync these as the user interacts with the UI. For example, if the...

View Article
Browsing all 2535 articles
Browse latest View live