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

Image may be NSFW.
Clik here to view.

CustomDataGridView Produces Duplicate Columns in Runtime

Hi there,Problem in Brief: I have an CustomGridView, a type of DataGridView. The below code is attached to it. When I drop the datagridview in design time I can see the columns are all in proper but...

View Article


is it psoosible to set the value type as "int " for a combobox column in a...

hi   i'd like to ask is it psoosible to set the value type as "int " for a combobox column(which is an unbounded column) in a datagridview? thank u very muchbest regardsmartin

View Article


Display Data In Form Based On Value in Another Form

I'd like to populate a DataGridView on one form based on the value in another form's DataGridView. For example: In one form, fLocations.dgv1, the user selects a row. This fires the...

View Article

how to pass value of variable from datareader execution of one form to...

Hi my name is vishal for past 7-10 days  i have been thinking/breaking my head on how to pass value of variable from datareader execution of one form to another form which inserts that value to a table...

View Article

Image may be NSFW.
Clik here to view.

Binding ComboBoxes using Foreign Key / Primary Key in two tables

My Database Structure is as shown above. I have bound all the  fields(except Type)  to their respective text-boxes / combo- boxes.When the user selects an item from the topmost combobox (bound to ITEM...

View Article


Why DataBinding doesn't work on second time around?

Hi GuysMy code below search for a record in excel based on a textbox text and bind it to a datagrid. but if I tried searching for the same value and bind it again I got error " DataBinding cannot find...

View Article

How to begin editing of a DataGridView cell on click?

Probably missing something obvious here, but if I override a cell's OnClick to start the "InitializeEditingControl" method, I get an error telling me that the "Operation is not valid due to the current...

View Article

for dataview textcolumn and dataviewcountercolumn, is it possible to make the...

hi   may i ask for dataview textcolumn and dataviewcountercolumn, is it possible to make the value like "1234" without saparator(display as "1234" not "1.234")   By the way i am using c#  thank u very...

View Article


How to Save DataGridView Changes into Database

Bellow is the code :DataSet ds = new DataSet();            DataTable uniquedt = dt.DefaultView.ToTable(true, "StudentNo");  foreach (DataRow uniuqedr in uniuqedt.Rows)        {...

View Article


Display selected date from calender in a textbox.

Hi, Can anybody please help me in getting the selected date from monthcalender , into a textbox in Windows Forms. Monthcalender control and textbox are in the same form.sammy

View Article

Datagridview checkbox with Oracle

Hello all,I am returning a query from an oracle database which returns 2 varchar columns and 1 char column into a dataset from an oracledataadapter. I'm then populating a DataGridView with the...

View Article

TableAdapter (Insert/Update/Delete/etc) - VB.Net with MS Access Back-End

Hi,I need help and advice. I have built my whole logical on a single form with multiple controls and used the Wizard to create my Data Source. However, I have opted not to use the Binding navigator, as...

View Article

Changing bindingsource query and updating datagridview

I have a designed dataset for a table which includes multiple queries. On my form I have a datagridview, and I'd like this datagridview to look at a different query besides the default (fill) query.I...

View Article


how to update database by editing DataGridView

I wanna update my database as i edit data grid viewhow should i do this?does adapter.update() method automatically update,insert and delete without any other code?!i tried to do this but it seems that...

View Article

Image may be NSFW.
Clik here to view.

Datagridview Printing issue

Hello,I have a datagridview that I am trying to print, I have set up a print preview dialog so I can see what the print out looks like beforehand.Above is the headers from my datagridview that I have...

View Article


How can i fill data grid view by dataset

How can i fill data grid view by dataset please notice that i want one of columns of comboBoxColumn type and another to be textboxColumnType

View Article

draw chart in excel

hiI have two columns of numbers (x , y)this numbers exporting to excel and after drawn chart by this numbers.but i have 2 series in chart when i right click on chart in excel and click on change chart...

View Article


Scroll DataGridView with mousewheel without scrollbars

Hi, I have programmed scrollbars for a DataGridView in Visual Studio 2013 in C#. For now they work fine.But scrolling with mousewheel doesn't work in the DataGridView. When the "original" scrollbars...

View Article

Image may be NSFW.
Clik here to view.

Creating Search Function in asp.net

I am trying to implement search functionality in my web application.I have a textbox(txtSearch), search button and textboxes to display results returned as shown below.I need assistance with my c# code...

View Article

DataGridView - Select row programatically

How can I programatically make a row in a DataGridView selected? The SelectedRows property is read only.

View Article
Browsing all 2535 articles
Browse latest View live


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