Input array is longer than the number of columns in this table
Hello In the event dragdrop of a datagridview I got this error:In fact my datatable have 15 columns but I added manually a checkbox column to select rows so I think i have a problem of indexes but I...
View ArticleShow data in datagridview by selecting multiple values from listbox c#
I want to show the data in datagridview by selecting multiple id's from Listbox in c# .Here is my code private void listBox1_SelectedValueChanged(object sender, EventArgs e) { ListBox l = sender as...
View ArticleC# .NET WinForms App - Update UI while in a long operation
Hi All,I am using VisualStudio 2010 - Framework 4.0. In my C# .NET WinForms application, I have a long process running on click of a button.I need to update the status of operation in the UI. I am...
View Articlehow refresh DataGridView1.DataSource
hi guysI tried alot of ways to refresh DataGridView... but they didn't work.plz give me the best way to solve it... i mean minimum code. many many thanks!!if (dataGridView1.InvokeRequired) {...
View ArticleVS 2010 export data to .xlsx if no excel is installed
I have VS2010 project. For now im using standart MSDN code for excel data export(just for testing purposes): Dim xls As Microsoft.Office.Interop.Excel.Application Dim xlsWorkBook As...
View ArticleFont size changes
How to change the size of the lettering on my c# winform depending on how big the form is. For example if the user re sizes the form the font size should change as well.Debra has a question
View ArticleDatagridview gridlines
I wanted to know if it's possible to make the height of each gridline in a datagridview in a c# winform wider then it is now? I know it changes height based on the font but I want to know even if the...
View Articledatagridview dinamic controller
i make a program with data grid view but i can't make a dinamic datagridview, please help me to make it like excel
View ArticleDataGridView - Select row programatically
How can I programatically make a row in a DataGridView selected? The SelectedRows property is read only.
View Articleusing Binding
I have the Following Class public class Address { public string AddressPlace { get; set; } public int GovernmentID { get; set; } public int AreaID { get; set; }...
View ArticleNavigation thru data.
Hi all,I have made my first windows form based on an Oracle database table showing multiple records in form 1.What i want to achieve is that when clicking on a row in from 1 i automatically navigate to...
View ArticleDetect a DataGridView's button click
I have tried some events, but all of them are fired when I click on the button's header, I'd like an event that only fires when thebutton is clicked... I have already tried these events:...
View Articlehow to bind results of another sql select query within same datareader...
hi my name is vishal i was wondering on how to bind results of another sql select query within same data reader execution in c# windows forms with sql server2008.I at process of exporting c# sql server...
View ArticleDataGridView SelectionChanged fires when other properties are being set.
HI! I have a DataGridView, bound to a SortableBindingList on my presentation model. I also have several other controls bound to properties of the same model. They're all updated OnPropertyChanged. My...
View Articlehow to make hscrollbar to navigate through records from database(sql...
Hi my name is vishal.For past 3 days i have been breaking my head on how to makehscrollbar control to navigate through records from database(sql server2008) in c# windows forms?Given below is c# code...
View ArticleDisplay Attendance Records in DataGridView Using Windows
Dear Sir I am currently working on Employee Attendance.And i have used 2 date time picker,In datagridview i m searching by EmployeeName. 1 for from date and another for to date,so in that if i am...
View ArticleDatagridview too slow when making rows invisible
I am trying to filter about 80,000 rows in a datagridview by making rows that do not meet the filter condition invisible but this seems to take forever. Is there anyway to do it better. Below is a...
View ArticleFrom Access to DataGridView to Excel and back
Info: I'm using Visual Studio 2010, Office 2010 x32, and am running Win7 x64. Also, I'm pretty new to VB.Net/Programming.Intro: I'm building a program to compare Transmission Line ratings. For this...
View ArticleDisplay monthly Attendance in datagridview from Database.
I have to display the employee attendance from database in datagridview using windows form application C#. Here in my form i m using a dropdownbox by searching a particular month.I have given the...
View ArticleAnother bound date time picker question
I am using a date time picker which is bound to a datatable with a custom format. //datetime picker this.dtpInvoiceDate.DataBindings.Clear(); this.dtpInvoiceDate.DataBindings.Add(new Binding("Value",...
View Article