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

How to access new row in case of cell quantity selected or changed

Problem cannot access New Row OR Last Row in case of cell quantity selected or changed .DetailsI have datagrid view have data as followingCode Name Quantity Price 0101 book 1 10 selectedrow New...

View Article


How can you delete from datagridview without a database?

i have this datagrid view where i loaded some array on it and also i can add, but i have one problem, how can you delete from it? is there a way to delete it? or you just need to re-input all the data...

View Article


Bound Combobox.SelectedIndexChanged

Using VS 2017 Community for a Windows Forms Application based on Access Database My Main form displays data for a single Table (DayBook Customer Requests) using a DataAdapter/BindingSource combination...

View Article

Unable to set inital string "Monday" to datagridview Combox in...

Hi,   unable to set  the below string  value to Combox in Datagridview in DefaultValuesneeded        e.Row.Cells["Type"].Value = "P";        Pop up the Below error:...

View Article

Datagridview combobox selected item to sql database

It's my code for datagridviewcombobox convert to string its workin but when i go to my database table in SQL"DataGridViewComboBoxCell { ColumnIndex=0, RowIndex=1 }" in the cells. SqlConnection con =...

View Article


HOW TO SKIP FIRST COLUMN IN DATAGRIDVIEW

HELLO,i am creating windows application and i store griddata to datatable i want to skip first column in gridview .how can i do this?

View Article

Datagridview's first combobox column data retrieval from sql database

Hello,I have to  data retrieval  from sql database for datagrid's first combobox column. The other columns of datagridview will be empty for now. How can i solve this problem?Thanks in advence.

View Article

How do I make a date input mask (not format) for a DataGridView column?

Greetings to all, I'm beginner programmer developing a small WinForms application in Visual Studio 2015 using C# .Net and need a date input mask (not format) for the  numbers entered in the first...

View Article


Image may be NSFW.
Clik here to view.

Add cutom row to datagridview

HI,I have a DGV bound to a Custom Binding Source (CBS)The CBS has internally a Ilist of two kinds of rows: normal DataRowView (got from DataTable) and a Custom Rows (that I call GroupRoW) added...

View Article


How to catch the row change event in a datagrid?

Hi everybody,How to catch the row change event in a datagrid? I'm using VB.NET.I have a datagrid filled from a table. I want to raise the row change event when the user selects a row.I found the code...

View Article

Populate win form datagridview from method in another class

Hello,I have a very simple winform with a data grid view on it.  The data grid view is called dataGridView1.In my other class I have the following code:  public class  GetConnection : Form1    {...

View Article

What is the RGB value of the color blue used to highlight selected items in a...

What is the RGB value of the color blue used to highlight selected items in a WinForms ListView?  I have seen a few suggestions online but nothing that is the exact color.Rob E.

View Article

DataGridView doesn't keep column order

I have a DataGridView on my form that I bind to a BindingSource, which in turn is bound to BindingList<MyStruct>.MyStruct is a custom struct with three public properties (say A, B, C).I set up...

View Article


what i write inside loop to display similar item code on datagridview and...

ProblemSQL Server Database(2014) Items TableItemCode(pk)    ItemName  001                       mouse002                       keyboard003                       HeadphoneOn File Excel sheet 2010...

View Article

Updated Rows Display

hello experts,i am updating a table using a stored procedure passing it few parameters and a table . in rerun i want to use output clause and see inserted (Changed Column) , but i am getting...

View Article


Visual Studio 2015 c# DSCW - specified type is not supported by this selecter

Trying to setup a project Data source and get error "The specified type is not supported by this selector" - cannot continue.Using SQL server compact 4.0 and northwind.sdfI have tried re-installing,...

View Article

Visual Studio 2017 and Mysql Datasource - Unexpected error and Could not...

HiI am using Visual Studio 2017 Community with MYSQL. I want to make windows form to update,delete records...etc.When i use a datagridview and try to add datasource, at the very end it fails with these...

View Article


Binding two properties of the same user control not working

Hi all,I'm having some issues with the binding operation for my user control.I have created a user control class in my Windows Forms Application in vb .net (it does not inherits from any control) and...

View Article

IndexOutOfRangeException on DataGridView

Hello, I've come across a problem that's been driving me nuts for the past couple days.  I'll explain first what this part of the form is being used for.  Have two datagridviews that is giving me...

View Article

How to make Datagrid column to read only if checkbox is marked as closed

I want to set a column to read only/non-editable when a checkbox is marked as closed. I'm not sure how to do that. Here is the code for the datagrid. I think it goes in the if (te.Closed) area of the...

View Article
Browsing all 2535 articles
Browse latest View live