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

Question About DataGridView

I've been using the Dietel Visual C# 2012 How to Program book, and am about to start the Windows Forms portion of the book. Unfortunately, this book does not cover how I want to use the DataGridView...

View Article


SQL with Windows Forms

I want to show in my program some rows of an external db.I already connected my program to the db, but I don't know how to use the db.eg. SELECT * FROM table WHERE bool=truehow can I display now the...

View Article


How to select a random cell in the DataGridView?

Good day I am new to the DataGridView control. I was wondering if one can select a random cell in the DataGridView and if it is possible can someone help me with the code or a link to do it please....

View Article

want to bind the list of checked item selected from the first checkboxlist to...

Here is the sample code i tried to bind to other checkboxlist from the items checked in the first checkboxList void binddatatolist()        {            string s = "SELECT DISTINCT...

View Article

Binding textbox to combobox selected value when the selected value is blank

I have a simple form that binds data to a combobox and when one of the values in the combobox is selected it fills a textbox with the corresponding column in that table.  However, if that combobox...

View Article


Change color of current cell in DataGridView

I have a dataGridView that has it's property SelectionMode = FullRowSelectEven in this mode the current cell property gets set. When a row is selected the row is highlighted with the row indicator...

View Article

Data Source configuration wizard

Hello~ everyone.I need some help. Let me know way I can go out from trouble.I often use DataGridview, WinForm Control, to develop DB application.Data source configuration wizard  is easy to bind data...

View Article

Add ListBox in DataGridView

How can add listbox in datagridview ?I'm add DataGridViewListBoxEditingControl,DataGridViewListBoxColum,DataGridViewListBoxCell class in my projectbut when i add Item in ListBox then this all item is...

View Article


windows forms data controls and databinding

i'm trying to add list data object with list control two time.1)first click on button when in list box there is no items [if block content]2)second click onwards [else bock content]problem is on second...

View Article


Setting tooltip on column headers in a datagridview

How to show the tooltip only on the column headers(not on other cells)  of a datagridview, when the datagridview is databound?  

View Article

DataViewGrid Entry Disappears (C#)

When I add an item to the datagridview (from another form), it shows up just fine. But when I try to add another item to the datagridview, only the new item appears, and the previous one gets thrown...

View Article

Hide a column in datagridview but still access data in column.

Hi I am trying to hide a column in a datagridview but at the same time, retain access to it's data.  I can hide it by setting columns("name").visible = false - but then I cannot access the data in that...

View Article

Data-grid population problems

Hi,I am having a little problem that is driving me mad . When trying to fill my data-grid noting happens . No error or noting . The only thing i can see is when i run the application a red x is put on...

View Article


TABbing between controls inside a panel to controls outside a Panel

Hi,I have a C# winform with few controls inside a Panel control and few outside it.The TABbing order traverse from controls inside a panel to controls outside a panel.Do we have any way to accomplish...

View Article

Datagridview in C# using MS SQL database

Hi! I want to use a datagridview that when I click on the id cell it searches the sql database and by clicking edit button, a form will be called to edit the content which will be updated to the sql...

View Article


Insert new row to master - detail form using bindingsource

Hi all,I have a form to analyse price of product, the form include master (textbox:slip ID,datetimepicker : date) and detail(datagridview:slipID,productID,price..)When I insert new row as below code,...

View Article

Adding a checkbox to a DataGridView column header

I have a dataGridView with a checkbox column to allow the user to select rows. I want to display a select all checkbox in the column header.Can anyone steer me in the right direction.Thanks!

View Article


BindingSource - Detail view - Is Current record dirty?

In a Windows Form, I have a set of detail controls bound to a table in a dataset through a BindingSource.  I cannot figure out how to tell if the user has edited any data in the controls that needs to...

View Article

Run SQL command if text box are not empty

Hi Guys quick question,I have quick question. I have 4 textbox's which searches data from a data base. But what i want to do is if the user only enters a some data in to one or two of the textbox's to...

View Article

Combo box events

Hi,    I have one issue in editing the combo box control. Let me start from the scratch.    I have datagridview in one windows form..In datagridview, i have datagridview combobox control..I have loaded...

View Article
Browsing all 2535 articles
Browse latest View live


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