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

Add States Lookup Combo to Employees Form C# ADO.NET VS 2012

Ex: Employees Details View form with US States drop-down combo LookupProblem: [States] is the Parent Table and [Employees] is Child Table in proper 1 -> Many Relation,as the foreign key...

View Article


Datagridview sorting... Object must be of type Int32 exception

 I coded a datagridview so that whenever the last row is clicked a new row automatically gets created. I also insert an incremental number in the first column of the new row and I simply want the...

View Article


DataGridView - Load very slow in windows server 2008

I have a form with Datagridview that load data from db to binding source and then set binding source as `DataSource` of datagrid  I call `SuspendBinding()` and set `RaiseListChangedEvents` to false...

View Article

VB Dataset Update with more than 127 fields

I could use a little direction with a problem. In my VB2010 app, I have a connection to a access db using the built-in table adapters, datasets, etc. everything works great. I have a large number of...

View Article

How to add checkbox in windows application form grid view and how to update...

I am making an windows application form in visual studio using C#. and i have to add a column after the last column which is get from database into grid view. How can i add a column there? and also i...

View Article


Bindingsource.find not working as expected

I have bindingsource.find problem - hopefully someone has thoughts as to why it is not working. Here is the code: Private Sub WriteDateAddedData(ByVal NewRecordScottNumber As Object)...

View Article

Display custom datarow properties in DataGridView

HiI have a typed dataset with several related tables( ej ParentTable and ChildTable datatables). The  ParentRow class (the autogenerated typed  class for ParentTable's datarows) has been extended with...

View Article

Issues with DataGridView in VirtualMode

HiI created a very simple windows form application in VS 2010. The code is as follow:using System.Linq; using System.Windows.Forms; namespace TestApp {    public partial class Form1 : Form    {...

View Article


can you bind a datagridview to a datatable with different number of columns ?

Hello,I am working on a form that has a datagridview and the datagridview.datasource=datatable but the number of columns in datagridview is actually more than what is in the datatable. so how would the...

View Article


Both DataSource and DataSourceID are defined in Gridview1

By the way you guys in this C Forum ROCK.  Other forums may take weeks or months before you get an answer.I have a problem using C# on a ASp.NET site.I have a Table Adapter with two queries.  1 to...

View Article

I have a dropdown and a list and three buttons ,on click of one button i want...

I have a dropdown and a list  and three buttons ,on click of one button  i want to bind dropdown text to the list,and with the help of other  two buttons   i want to move the binded text to the list to...

View Article

How to add user control to datagridview cell c#

i was searching trick to add user control to datagridview cell and found the below code. i just copy paste the code but when i try to add the CustomColumn then i got error.this way i try to add...

View Article

Mouse drag operation failed. Editing is not allowed for this DataSet..

Hello,I am using Visual Studio 2008 and SQL SERVER Management Studio Express 2005.I am getting this error when I try to drag a dataset. Please help me to resolve this problem as soon as possible....

View Article


DataGridView ComboBox question

Thanks a lot but i want to say my problem I have a datagridview than bind to   Table 1 , so i have a DataGridViewComboBoxColumn that bond to table 2 . Suppose  table  2  contains...

View Article

How to Add DataGridViewRow directly from SqlDataReader

I'm new to C# and working with some code I inherited and noticed a performance issue.  This code is looping multiple times on each column (the application selects a file and this code gets the selected...

View Article


Can I enable row editing programmatically?

OK. I've got a bound datagridview, which was set to readonly by default. Then I want a 'Edit' link at the end of each row and when it's clicked, change the entire row to enable editing in all cells of...

View Article

Updating a row and adding a new row to a datagridview that is bound to a...

I have a datagridview that is bound to a binding source. I want to be able to edit or add a new row to the datagridview. The user types all the new or changed data into text boxes and then clicks ok....

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

DataGridView, BindingNavigator: Adding new lines, NoNullAllowedException

Since I work with .net 2.0 databinding I run into one problem after the other. Unfortunatly things that should work in a nice way only do on the surface but not in detail. At least that is my...

View Article

Normal DataBinding - NotNull Columns - How to trap Error and Display custom...

I have a simple winform with databining on CustomerContacts Table.  This table has emailId column which is "Unique and Not Null"I also have BindingNavigator.  When i click on "+" button of...

View Article
Browsing all 2535 articles
Browse latest View live


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