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

tableadapter will not return null values

I am trying to change the NullValue property of a field to return a null if the field is null.  Of course, this causes the followng error msg even though the underlying table allows null values: "For...

View Article


Insert/Update NULL dates using TableAdapter

Using VS 2017, I've got a TableAdapter, in which I'm trying to insert NULL dates--using its INSERT command.I'm being stopped when it encounters a DATE field, which is NULL.  (Allowable on the DB...

View Article


How to show my List of data in Pivot format

I have list of information with following fields:Project State Title ABC Resolved Title1 ABC Pending Title2 DEF Archived Title3 DEF Resolved Title4 DEF Committed Title5 DEF Active Title6I want output...

View Article

Need Help I would like to ask why my text box can't read the barcode scanned...

I am writing a barcode scanner program i face the issue is when user the 2d barcode scanner Scan the barcode. my textbox can not read the data. can someone help me take a look. Thanks.below is my...

View Article

Need Help can someone told me why i am no success show my error message when...

Good Day, i am wring one program. The program purpose is when the textbox detect textbox word is out of limit it can't to continue writing and it will pop out a error message. Below is my code can...

View Article


Speeding up setting of DataGridView.RowCount

I'm having an issue with a datagridview running in virtual mode. The DataGridView itself runs in VirtualMode has 6 set columns.  The ammount of data returned could be very large (250k rows).  The slow...

View Article

How to persist cookie on auto redirect URLs ?

I am using .NET 3.5 Winforms Web Browser control where I am trying to implement SSO for my app. I am getting authenticated successful and receiving all the cookies from the SSO service. When the...

View Article

how to get value from datagridview using row header mouse double click

here i got error when i click on grid row{"Index was out of range. Must be non-negative and less than the size of the collection.\r\nParameter name: index"}here the code private void...

View Article


What is the usage of let keyword in LINQ

I like to know why and when people use let keyword  in linq? Please come with some scenarios which can describe the situation to use let keyword in linq.

View Article


May i ask how can i solve this error message (System.Windows.Forms.TextBox,...

I face the issue is after i scan my barcoede i will get this error message on my textbox1 can someone pls tell me how can i solve.is i missing something.Public Class Form1    Private dataIn As String...

View Article

I get this error message on my program Conversion from string "" to type...

 I get this error message on my program Conversion from string "" to type 'Double' is not valid. what is i missing can someone help me Private Sub txtPrice_TextChanged(ByVal sender As System.Object,...

View Article

Accessing array of child objects in c#

I am having a scenario like the following in datagridView - CellPaintingEventobject cellValue = e.FormattedValue; through the above sequence i am getting array of values sometimes i.e:cellValue =...

View Article

A problem with datagridview combobox

Hi, friends.. I have a problem relating to datagridview combobox.. I have a datagridview binded with a customer datatable, one of datagridview columns is combobox which uses student datatable as a...

View Article


May i ask how to use the same serial port in different forms can help me take...

in current situation my form 1 textbox can receive the data after scan but form 2 can't not below is my coding can someone help me take a lookform 1Private Sub Form1_Load(ByVal sender As System.Object,...

View Article

How to Display Sum Total in the Footer of the DatagridView

hi alli have windows application in which a form containing datagridview is there.in that datagridview i want to show total of values of one column at last row . How can i do that

View Article


how to use DataTable to populate a ListBox?

I am trying to retrieve data from SQL Server to a DataTable object://It doesn't really relevant to the question, so you can skip reading this function public static DataTable FillByMail(string Email) {...

View Article

How to open multiselected files in datagridview in C#

 Hi I have alot of excel files I want to selecte Three files and show them in datagridview, I tried with  code but my code show only the last one, e.g I have 1,2,3 excel files, datagridview show only...

View Article


DataGridView row automatically selected

This seems to be a really simple issue, but for some reason I've failed to find an answer. I have a DataGridView with MultiSelect = true and SelectionMode = FullRowSelect.I'm binding a business entity...

View Article

Multiple timers that are triggered each specifically C# WPF

Section name | Time (min) | ---------------------------| Warehouse | 04:10       | ---------------------------| Shipping    | Not started| ---------------------------| Receiving   | 15:70       |...

View Article

DGVprinter

Hello guys,    In the application I'm currently working, I use datagridview. And for printing data from datagridviewI use DGVprinter. Do you know how I can put my footer only on the last page of my...

View Article
Browsing all 2535 articles
Browse latest View live