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

SelectedIndex of a DataGridViewComboBoxCell?

Hi, How do I set and retrieve SelectedIndex of a DataGridViewComboBoxCell?//Mohan

View Article


combo box issues

hi. okay, will then paste the  below. what i have is a combo box and it sorts the data grid columns. if i try to sort the columns, before oepning a csv file, get an error array out of bounds error. so...

View Article


data grid hidden

hi. okay, have a two click buttons, and they are supposed to write to the xml and read the xml file, and then transform it to the application, when i click on the Current count or On Order buttons,...

View Article

setting focus to a specific data grid column

hi. need to set focus on the data grid to a specific data grid column. did try searching on google, but could not seem to find any thing for that. any one got any ideas how i do that. the general code...

View Article

how to put a second form in the first form without closing the first form.

hello i want to create a 2D-Game but i got an issue. i look for 2 days for how to put a second form in the first form without closing it.i have a code that opens a new form and closing the main form. i...

View Article


Disabling resize on row selected column in DataGridView

Hi,In my application, I have managed to disable resizing of my data columns on my DataGridView, but the only column that I cannot disable the resize feature is on the row select column, you know, the...

View Article

Selected Row in DataGridView is not properly sorted

Hi,I have a DataGridView where the user can modify Column1.  In turn it also updates Column2.  In order for Column2 to be updated immediately after Column1 is changed, I have an event handler for...

View Article

How to create a custom DataBinding property for any custom control like...

I want to create a custom DataBinding property for a custom control ( which isnot an extension of windows forms control).I have used this with TextBox or Label where I can attach an object with it...

View Article


C# window form databinding from SQL

Hi guys,I have a ClientTable on my local SQL database  (ClientID, ClientFullName, ClientTitle, ClientCompany, ClientEmail, ClientPhoneNo).I would like to know if there is a way to bind the dataset to a...

View Article


Percent Formatting with a Data Bound TextBox

I have been trying without luck to use a data bound TextBox into which the user will enter a percentage.  There are 2 things that I'd like that seem to be incompatible:1. I'd like the user to be able...

View Article

what event is called when delete datagridview row

I have a dynamically built DataGridView.   When I click on the row header and press my delete key, it deletes the row from the DataGridView.    I want to be able to delete the row from the...

View Article

Positioning ToolTips in a DataGridView

Is there a way to position ToolTips in a DataGridView?   The default seems to display them overlapping the cell rectangle.  I'd like them adjacent to the bottom of the cell.  I'm not finding anything...

View Article

Filter listview based on textbox input

Hi(I apologize in advance for my bad English)I have a listview, which I fill from a csv file. The csv file is in the following format (no blanks - it's only for a better...

View Article


Data grid not populating

I am learning C# along with Visual Studio 2013. I finally was able to get all the errors cleared. But when my form comes up the data grid is empty. Even if I put in a search for a certain ID I get...

View Article

DataGridView InvalidOperationException when changing BindingSource.DataSource

I receive an "Operation did not succeed because the program cannot commit or quit a cell value change" error when I change the DataSource of the BindingSource bound to the DataGridView.  This occurs...

View Article


Datagridview cell specific custom mask

I have a table named ContactInformation which holds customer phone numbers (cell, home, work, etc.) and email(s).  It has three columns, "Type" (1 = home phone, 2 = cell, 3 = work, 4 = email, etc.) and...

View Article

Barcode and TAB function between two field

Hi Everybody!  I have a problem. I created a barcode generator (personal card) in visual studio. BUT I don't know how can I put the tabulator after the field or between two field? I have got two...

View Article


Datagridview Richtextbox

Is it possible to make the text editing control a richtextbox in the datagridview?

View Article

DataGridView resize issue with last column

I am having an issue with resizing the last column in my DataGridView. The problem is that I cannot increase the width of the column if it is the last column in the grid -- I can only reduce. The work...

View Article

BindingSource.AddNew doesn't move to new record at end of list

I am coding a module in Visual Basic 2012 similar to one I have coded successfully in Visual Basic 2010, but when I usecustomersBindingSource.AddNewthe .Position does not automatically shift to the new...

View Article
Browsing all 2535 articles
Browse latest View live


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