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 ArticleGetting 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 Articlec# 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 ArticleCasting 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 ArticleHow 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 ArticleMake 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 ArticlePopulate 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 ArticleHow 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 ArticleHow 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 Articlecopying 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 Articleselected row index change during keypress or keydown vb.net
selected row index change during keypress or keydown vb.net
View ArticleDatagridview 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 Articlekeep 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 ArticleConnection 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 Articlebest 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 Articleadd 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 ArticleComboBox 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 ArticleBound 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 ArticleDataGridView: 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 ArticleDatagridview 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