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

Items not appearing in unbound columns of DataGridView until second showing

HiI have a tabbed form that acts as a wizard. On one form there is a DataGridView.  The first three columns are bound to a dataset which represents the various sessions in a timetable for a college...

View Article


Image may be NSFW.
Clik here to view.

Load treelistview from datasource with hardcoded root nodes on treelistview

Hi, . Could you please provide me a code sample showing how to load a treelistview from database with hardcoded root nodes on treelistview. I have attached a sample preview of the tree I am in need...

View Article


How To Get the Actual Displayed Width of a DataGridViewColumn When Using...

I am trying to produce what look like multi-column headers over a DataGridView (DGV) by using a TableLayoutPanel (TLP) that sits over the DGV as vaguely described in a response by Samus Arin at the...

View Article

click button then disable keyboard C#

Hi,I have a timer. I want that the keybord and mouse are disabled when the timer reached zero. After one minute, the keybord and mouse must be enabled again (with timer2).How can I do this?Thanks.

View Article

get selected row column value in datagrid C#

I am currently doing the following to get the key of the row selected in my grid. string CustomerID = this.grdCustomers[grdCustomers.CurrentRowIndex, 0];  I have seen that there is a way in visual...

View Article


populating a treeview (winforms, c#)

Hello.  Have a treeview that does populate with the following code that is posted below.  But this only shows the top most level (Project) and one child level below Project.  The information for the...

View Article

DataGridView DataGridView to Excel data transfer and also save the sql database

Hello, I apologize, my English is bad. My question is this; - In the first etep DataGridView importing excel data I receive. after - Datagridview the data in the SQL Server database to want to save. I...

View Article

Remote Databinding

Hi to all I have an important question!!!!suppose we have a textbox control in clients like this type : textbox1 in client1 windows form ,textboxt2 in client2 windows form ,textbox3 in client3 windows...

View Article


Image may be NSFW.
Clik here to view.

Grandchild nodes not loading in treeview :Windows Forms, Child nodes are...

Hi, I am using a treeview to populate data from an sql table. I have Parent and Child Nodes in one table and Grand Child Nodes in another table. Below is my Code:string groupmaster = "select...

View Article


How to perform selectedIndexChanged event of dataGridViewcomboBoxColumn in...

In my WinForm Application, I used a dataGridView1 control. In thisdataGridView1 I added three dataGridViewcomboBoxColumn namely:SelectCategory, ProductCode and ProductName. Whenever the user will...

View Article

DataGridViewCell set style padding is very slow

Hi,My app is very slow when i use this part of code (Style.Padding) :public class MyGridCell:DataGridViewTextBoxCell {    .....    internal protected virtual void UpdateStyle(){...

View Article

Image may be NSFW.
Clik here to view.

Initial Form load doesn't display data in datagridview

The form loads. The datagridview displays the number of rows you would expect to see, but the cells are empty. I click on ANY button on the form (including just a filter dropdown) and the datagridview...

View Article

Dropdown filter in DataGridView

I have a requirement of adding a dropdown filter in each column of my dataGridView.The filter will be a combo box under the column header & underneath there will be a textbox which will contain the...

View Article


Refreshing a data source

I've added a BindingSource control to my form, and set its DataSource to my project data source.When I add fields to a view in the SQL Server 2000 database behind the data source, I can't get the new...

View Article

How to turn off "AutoGenerate" of columns when a DataGridView is data-bound

I have a Windows form that has a DataGridView on it.  I have bound the DataGridView to show data, that I specifed,  from the database (I defined the cells that I want to see through the property page)....

View Article


Index was outside the bounds of the array.

Dear Sir/Madam,Iam developing a website in which I have added search form.When I click on search button its redirect to viewdetails form.But when iam clicking view details button,its showing index out...

View Article

combobox controlling a second combobox

Hi.  I have a combobox called cboStatus.  The cbobox shows Open and Closed only.  There is a second cbobox called cboSubStatus.  There are many items that show there as it records the phase the project...

View Article


How to set DataSource and DataBindings in Combobox which is in DataGridView

Hi  everyoneI have one problem about thisIn win form application I have two comboboxes which one is  dragged in win form directly and second is in column in DataGridView. In Database I have two tables...

View Article

C# button double click in windows..

Hi.I tried double click event handler in button.but its not working..I am using runtime button with array.. how to create a double click event in that.help me...i am using windows application..

View Article

Best way to export specific columns from DataBound DataGridView to Excel

Hello,I have the following code that will export the entire DataBound DataGridView to Excel. Looking for advice on the best way to export only certain columns. Basically I want to have a new form open...

View Article
Browsing all 2535 articles
Browse latest View live


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