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

StackOverflowException sorting DataGridView with non-Visible rows.

Very simple project - create a C# Windows Forms application. Add one DataGridView to the form, not bound to any data source. Add one column.In the form initiator code, add some rows, and hide...

View Article


PLEASE help Datagridview printing function

Greetings, In my windows application have 2 DGV. One is showing data that is being fetched through queries from sql server management studio and as this GVD is bound, I'm showing the sum of columns in...

View Article


how to control the installation of another setup file in windows application

I want to automate the process which tries to install another setup.exe file while installation there are different function like selecting the buttons like "Next" selecting checkboxes and destnation...

View Article

Get the first value (first row) in a certain column

I want to get the first value (first row) in a certain column of a DataGridView. How do I do that?

View Article

Null Reference Exception when adding column to Column Collection

I am adding column to the column collection of a data table.  The data table is the data source of a data grid view.  AutoGenerateColumns is set to false on the DataGridView.  I am displaying a context...

View Article


datagridview usedrcontrol cell Issue

i created usercontrol ( textbox and Combobox) and added to datagridview first row ,if i clicked in Combobox cell 0 then go to cell 1 then comeback to cell 0 the datagridview.currentcell.columnindex...

View Article

How do I hide first column in every DataGridView using a CheckBox?

How do I hide the first column for all the DataGridViews in the tabs?public partial class Form1 : Form { public Form1() { InitializeComponent(); tabControl1.TabPages.Clear(); createGridViews(); }...

View Article

How to bind the the datatable datasource to a predefined combobox column of...

I have  4 column in datagridview, Item, Qty,Rate,Total. I am creating the dropdown list for the columnItem column from the following sqlSelect A.Code, A.Description From kmProduct A Where  A.Hidden =...

View Article


Drag n drop fails - Object reference not set to an instance of an object

I did follow a Drag N Drop tutorial on YouTube, did exactly the same thing but I get the error:"Object reference not set to an instance of an object".The difference would be that I do create the...

View Article


Checkbox in the first row of datagrivew does not respond to click (does not...

I have a winforms window with three tabs. All the three tabs have datagridviews. In first 2 tabs the datgridview is in virtual mode. While the last tabs datagridview is databound. All these DataGrids...

View Article

Image may be NSFW.
Clik here to view.

Speech in C# Error

I have a speech program with an error...using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using...

View Article

Image may be NSFW.
Clik here to view.

How to modify the DataGridViewer selector

Hi,I would like to reduce the first column of the DataGridViewer on a Window form. Can someone let me know what property is this?A screen-shot is attached.Thanks

View Article

blank page when printing datagridview

I'm trying to print a datagridview, but only some columns.PrintpreviewDialog shows the document but when I'm trying to print it print only the header of my table and and nothing else private void...

View Article


Image may be NSFW.
Clik here to view.

DataSet Bug

previously I have created one project with .mdf file failed to make display in Listbox...but same I failed in Make changes in dataset..code is belowPublic Class Form1 Private Sub...

View Article

How do I change text colour in DataGridView cell?

I have DataGridView and if a cell (in specific column) have a certain value it will change the background of the whole row (the same row where the value exists).Now I would like to make two changes:1....

View Article


DataGridView causing error

Private Sub UpdateGrid() Try If Me.DataGridView1.IsCurrentCellDirty = True Then Me.DataGridView1.CommitEdit(DataGridViewDataErrorContexts.Commit) Me.BindingSource1.EndEdit() End If Dim myBuilder As...

View Article

IDataErrorInfo - DataGridView calls Error() but not item[] indexer

The item indexer never gets called so that the error icon won't ever get shown in the cell. Since the .Error() method gets called the row error icon does show. What is missing to enable the grid to...

View Article


Image may be NSFW.
Clik here to view.

Datagridview MaskedTextBox Can't Remove Value

I have a winforms app with SQL for the database. I have added a masked textbox to my datagridview using 00/00/0000 as the mask. When I try to remove the date from the cell I get the following error...

View Article

how to check repeated value in Datagridview column Item

HiI have 4 column in the datagridview dgview1Item    Rate          Vat                  TotalWhen I  give  duplicate item  in the datagridview dgview1, how can I validate with messagebox  and  to...

View Article

webBrowser1 control shows Empty popups

Hello,I am using the webBrowser1 control.I am navigating to a webpage and then I click on a link on that webpage which do produces a popupwindow inthe "real Windows Explorer browser". However this...

View Article
Browsing all 2535 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>