Answer Questions
kanthb BindingSource.Find throws exception on empty DataSet
I have a problem with a bindindingSource very similar to the problem reported here but I've tried the solution outlined (explicitly setting the bindingSource's DataSource before the call to Find) but it doesn't help me (the DataSources for my BindingSources are correct) - so there's no chance for the DataSources to get set incorrectly. My situation is slightly different because I'm adding the BindingSources from the toolbox (not by ...Show All
Andy Wigley inheritance bindingsource
I started with inheriting the Bindingsource and added some additional events and properties which i needed. Using inheritance seemed the right choice, so i started to inherit the Bindingsource. Below a summary of my extention to the BindingSource. public class BindingSource : System.Windows.Forms.BindingSource, ISupportInitialize { bool AutoSave { get; set; } bool DataDirty { get; set; } event DirtyEventHandler DirtyChanged; ...Show All
mcpJim DataGridView: Double-line header
Is it possible to have two lines in the header I want to group several columns under a bigger group column. And I need two header lines for the columns, one for the individual columns and the other for the group column. If I cannot do this, then I have to hide the header and use two data lines to emulate the header. Thanks! Hi friends, I have one problem in dataGridView, i am using DataGridView for showing data. but the problem i m f ...Show All
Klaus R. How do you guys work with VS.NET like this? CONTSANT DESIGNER ISSUE??
Nearly EVER TIME I open a form, the designer is unable to load the form with weird & mysetrious errors (see sample errors below). How is anyone supposed to develop like this To try and resolve the problem, I have to try any of these: 1) Close the form and open it again 2) Close form, recompile solution, open form 3) Close visual studio and open up project again Again, this is 80% of the time I try and open up a form inside Visual Studio 2005 ...Show All
Coder4Christ Error: DataGridViewComboBoxCell Value is not Valid
Greetings, I am using VS2005 and Sql Server 2005. My database table contains a column (mycolumn) defined as char(10), no nulls, default value blank. This table is added to my dataset with default value blank, default control type is datagrid, mycolumn default control type is ComboBox. I created a sample form and dragged the the dataset table on to the form, a datagridview was automatically created. I changed my columntype to datagridviewco ...Show All
Bonquest Technologies Binding DataGridView to Junction (many-to-many) table.
Hi. How do I bind a DataGridView to a junction (many-to-many) table in a way that the DGV displays data from the lookup tables being joined by the junction table I have worked with the DGV column types such as DataGridViewComboBoxColumn but haven't been able to get them to work in this complicated scenario. I'd like the user to be able to select values (being displayed in DataGridViewComboBox columns) from the lo ...Show All
ThisIsBrianS DataGrid scroll - tough one
Hi all, Is it possible to make a DataGrid scrollable while freezing one of its columns That is, while the rest of the columns scroll, that single column stays put. Thanks. You could probably accomplish almost the same thing with two DataGr ...Show All
levi3man Using DataGrid control to view/edit a matrix of data
I want to display & edit a simple data matrix (or similar structure) using the DataGrid control. Can someone point me to a simple tutorial to do this Or show me some sample code to do this All the examples I can find involve bin ...Show All
Rumi View Data Grid (for xml database)
Since upgrading to VS 2005, when I right click on an xml database document that contains the schema, I no longer get a listing of the tables and cannot view the data contained in the tables. If I open the document created with VS2005 in VS2003, the grid populates fine. Thanks in advance for any replies. The tables are created and added to the dataset like this. DataTable dt = new DataTable ( "Table1" ); ...Show All
Allen Li New whitepapers for building DataGridView custom cells and columns
Hi all, We just posted two new whitepapers about building custom cells and columns for the DataGridView control: Building a custom RadioButton cell and column for the DataGridView control ( Source and Sample Code ) Building a custom NumericUpDown cell and column for the DataGridView control ( Source and Sample Code ) The docs, source code and sample code are under http://www.windowsforms.net/WhidbeyFeatures/default.aspx P ...Show All
Cbless Link or sharing BindingSources between forms
Hi, My story is the following, I have to forms, first includes a Datagridview and BindingSource,and the other shows details of each record using a BindingSource and BindingNavigator. Problem is that controls does'nt synchronize between forms current selection in grid dont reflect the current record in second form (detail). In second form (detail) I have a method in wich passing the bindingcontext of the first form and the same datasource t ...Show All
Kenny99 how to populate a datagridview?
how can i populate a datagridview without a database i'd like to use it as a list. Sorry, i don't do c#. Perhaps you could be more polite and maybe someone else will help you. Or perhaps you could try reading up on the DatagridView. That might make life a whole lot easier for you. Here where some pretty good references I used to populate datagrid... http://msdn2.microsoft.com/en-us/libra ...Show All
Dennis Kriek use a variable to cycle through textboxes
I have about 15 textboxes, all of which I want to save in a string array. Right now I just code: array[0] = txtbx1.text array[1] = txtbx2.text.... and so on. Is there a way that I can use a for loop and use x instead of 1 and 2. so it would look like this: For( x=0;x<=15;x++) { array[x]=txtbx + x.text; } instead of writing it 15 times Thanks. If you want to talk about inte ...Show All
Okan Tekeli How to update dataset
Hi, I am having some problem to update my dataset. I am basically using two forms to show the information from the database. This first form is having a datagridview to show the basic information and the second form is used insert and update the database. Now I am using the following code to fill my datagridview on the form load event. Dim ds As New DataSet Dim sSQ ...Show All
Danila Getting ClickOnce to create a desktop shortcut
msdn states that ClickOnce supports the creation of shortcuts . I am using VS2005 Beta2. But I have not found a way to tap this feature. How do I set ClickOnce to create a shortcut on a user's desktop during installation Does anyone know ...Show All
