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

How can i write also to xml file the settings of the Tag property to identify...

The first thing i'm doing is to get from my ftp server all the ftp content information and i tag it so i can identify later if it's a file or a directory:private int total_dirs; private int...

View Article


Getting value from one form to another

Hi,When a button is clicked in Form1 then Form2 is shown . Value entered in textbox in Form2 should be assigned to a cell in DataGridView of Form1 and Form2 should be closed. Can you please give a...

View Article


c# sum checked rows

Hi, I added a column checkBox as column9 in datagridview. I need get sum of rows column6 if column9 checked is true. I have this code:private void dataGridView2_CellValueChanged(object sender,...

View Article

Casting DataView.ToTable c#

I want to create a small, sorted, strongly-typed DataTable from a strongly-typed source DataTable.  The most straightforward way I know to create a sorted DataTable is to create a DataView, assign a...

View Article

How To Programmatically Insert an Excel Table in an Interop Created Worksheet C#

I am using Interop to create an Excel worksheet from a DataTable in a C# Forms app.  I want to know if there's a way, once the worksheet is created, to programmatically ask Excel to insert a table so...

View Article


Make Datagridview Column Fully visible

I have a datagridview with 10 columns. One of the columns is partially visible when i moved the horizontal scroll bar. I want to make the column fully visible when I clicked one of the cells in it. Is...

View Article

Populate combobox2 From database WHERE combobox1.text = something

I want to populate combobox2 from database WHERE combobox1.text = something. Here is the code I have and also I am using datable so I want to keep it that wayprivate void...

View Article

How to make DataGridView Autocomplete columns

Hello Everybody I want to know How to make DataGridView Autocomplete columns What I mean is " If I make a column 1 like a combobox and then choose any item from it when I selected I want to fill any...

View Article


How to show image in a datagridview cell called from a URL stored in an SQL...

I am using Visual Studio 2008 creating a Windows Form to display a datagrid with real estate information. The SQL database record contains a dozen fields of text which I have no problem displaying. My...

View Article


copying datagridview to excel

Hi Guys!I'm new in c#. I want to copy the data from my datagridview to excel. I have a existing excel file that have a data, now i just want to do is to add some data came from my datagridview.

View Article

selected row index change during keypress or keydown vb.net

selected row index change during keypress or keydown vb.net

View Article

Datagridview problem

I tried creating each column in a datagridview with different alignment and it didn't work how and where would I be able to do that? I need column one the header and details to be right aligned and...

View Article

keep formatting when grouped columns

Hi GuysMy code below group to datagridview columns in one and I need to keep the font and color of the second column inside the first column. cause right now the second column inherited first column...

View Article


Connection between database and datagridview

Hello,I have a question , I want a code about database and datagridview , What I mean in datagridview if the column 1 have a combobox and it's have items form database when I selected any items from it...

View Article

best way to handle cliet disconnection

hello my friends.im working on a project that there is one server and it runs always and it should receive clients connection requests and handle their disconnection.i wrote my disconnect code on...

View Article


add a combo box in a specific row in datagrid view c#

I want to have a combobox in a specific cell in my data grid view. can somebody help? For the table im using data tableProblem: i want to put a combobox in a specific cell like in column 1 and row...

View Article

ComboBox SelectedIndexChanged fire for every INotifyPropertyChanged

.Net 4.5 Windows FormsI have a strange problem.I inherit from a BindingList and the items support the INotifyPropertyChanged interface.I assign the list to a combo box DataSource property.I assign a...

View Article


Bound DataGridView newrow combo box

Hi,What I want to do, and am not sure how to do is the following:  I have a datagridview that is bound to a List data source. I made the rows loaded  from the data source as "ReadOnly" because I don't...

View Article

DataGridView: Scrolling to Selected row

(.NET 2.0 Framework)In the DataGridView control, I have programmatically selected a row that's currently not displayed in the grid.  However, the grid does not seem to scroll to the selected row...

View Article

Datagridview checkbox problems

I have a datagridview with the first column being a check box how can I make the checkbox bigger?Debra has a question

View Article
Browsing all 2535 articles
Browse latest View live


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