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.

DataBinding bindingNavigator Save changes

Hi,Is there a simple way to update changes done in the table by clicking the save button on the bindingNavigator?The add a line button worksI have multiple tables in the ComboBox and all have different...

View Article


How to make c# application auto scale able and responsive to all the windows...

Hi, 1) I have developed an application on Windows,64 architecture machine and .net framework 4.52) I copied the Release folder of the application and tested it on a laptop, But It was not scaled...

View Article


Sort a listbox with reverse alphabetical order?

How do I sort a listbox as reverse alphabetical order with this code?listBoxComputer.DataSource = Directory.GetDirectories(rootDir).Select(Path.GetFileName).ToList();...

View Article

How to set font type with a DataGridView?

I have a DataGridView, and I want every cell to have Courier font style.I'm doing the following:temp.Font = new Font("Courier", 12, FontStyle.Bold);I have indeed Bold, 12 size, but I don't have...

View Article

Data Grid View rows selection not working

I need to retrieve selected rows from the data grid..i tried to have  SelectionMode property  set to FullRowSelect or RowHeaderSelect.  I am always seeing 0 rows as selected.. Any Ideas??

View Article


I have a two datagridviews in a WindowsForm from two tables - It is a Form...

Hi folks,I will try to be concise as much as possible.I have a WindowsForm with two tables. I put two DataGridviews in it. The tables have, the first one: Father (CalledInvoices)has - cod_entry_Invoice...

View Article

Insert a new column in DataTable at a specified position.

 Iam having a datatable with 3 data columns.I want to insert the new data column after column 1.eg.I have a datatable with columns "Name","Address","State"I want to insert a new column "Profession"...

View Article

C# Listbox control - How to tell if program has selected an item in listbox...

Hi,My form has 2 listbox:server_type which has items 'dev', 'uat' and 'prod'ad_domain which has items 'mytestdomain.com', 'myuatdomain.com' and 'mydomain.com'The scenario is as follows:On startup the...

View Article


async / await how to set datagridview cell color asynchronously

based on some condition i want to set back color for few cell. i may need to set back color for huge no of cell which may freeze my grid.my grid is loaded with many data. i want to iterate in all rows...

View Article


How to raise event from user control to my windows form

looking for sample code which raise event on button click from user control to my windows form with multiple int type value.means user control sent many int type value to winform when raise event and...

View Article

Image may be NSFW.
Clik here to view.

Error when saving datagridview table (The name adapter does not exist in...

First part of code (pulling data into datagridview) works fine, then I tried to add code for button Save.Basically, I just modify the code from this thread, not sure why it shows error message. How can...

View Article

Image may be NSFW.
Clik here to view.

Error(In same form but different panel) when saving datagridview table (The...

First part of code (pulling data into datagridview) works fine, then I tried to add code for button Save.Basically, I just modify the code from this thread, not sure why it shows error message. How can...

View Article

Exporting datagridview table to excel file

Below code works, but three minor issues:1) No title row, how can I copy title row too (I mean field name row).2) The data is pasted to cell B2, so output file column A is blank. It seems that the code...

View Article


programicly add custom lines in before the program populates listbox

ok i have a program that i am trying to add lines in before program loads or populates the listbox  issue being im not sure how to add custom lines on listbox i tryied using find for listboxT witch is...

View Article

Selecting a item in a listview doesn't highlight the item

When you click on a list view item. The item should be highlighted with the item that was selected.when I try and use an item that I selected like to delete a record from the sql server database. It...

View Article


Customizing items in DataGridViewComboBoxEditingControl

I have a DataGridView that is bound to the following class:public class InfoControlClientData { public string Name { get; private set; } public string Description { get; private set; } public...

View Article

DataGridView adding new row OnEnter when there's none

Hello all. I use both Delphi and VS. When I click a Delphi grid, it always creates a new row if there is none. If you didn't type anything when you leave the grid, the newly added row is automatically...

View Article


c# how could i parse this file to key value pair

ok what im trying to do is load this file in this stucture "anim template" "anim fileds""angleError" "0.05""boneStabilizers" """customnote0action" "None""customnote0actionparam1"...

View Article

Column not displaying correctly

I have a datagridview that draws its data from an Access database. In fact there are several dgv's all drawing from different Access database tables.The first column in each table contains a "Link...

View Article

Binding ToolStripComboBox?

How can i bind ToolStripComboBox to a DataTable?There is no DataSource, DisplayMember & ValueMemeber property?Thanks

View Article
Browsing all 2535 articles
Browse latest View live


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