DataGridView - Remove default context menu while editing cell
I have read multiple post about using EditingContolShowing event to prevent the default context menu from appearing on a right click in the cell that you are editing. But how can I prevent this default...
View ArticleHow can I reorder DataGridView Columns correctly? DisplayIndex is not working...
I've been slamming my head against the wall for too long on this problem. I've tried almost everything. I set specific columns like so:dgvPrograms.Columns["BenefitYear"].DisplayIndex =...
View ArticleCreate Timeline
Dear All,I need a little bit help, is possible to make timeline on datagridview header ?Where it will be written date below of date will be hours and minutes. But for minutes only example 7:00 and...
View ArticleAutocomplete textbox in Mdi child form c#
Hi everyone,Can any one please let me know how the Auto complete works in Mdi child form ? I have created the simple windows from in that the below code is working fine but the same code if i implement...
View ArticleCurrentRow of DataGridView is null
Why oh why is the datagridview current row always returning NULL when there is clearly a row selected? It's something that has been frustrating me for a while.I've always found ways to work around it...
View ArticleHow to change a font colour of a particular row in sql database?
I am developing a desktop sql database application using C#. I want to change the font colour of a particular row of database. For example, my table looks something like thisItem code | Perfume Name |...
View ArticleDataGridView Change a column data type from text to combobox at runtime
Hello everyone,I am a newbie to C# and VS2010. I have been looking online for few days now and not a single solution I found address the "DataGridView Change a column data type from text to combobox at...
View ArticleLast item problem
I have a visual studio 2013 problems, and its my first post :DFirst question:When i click in the BindingNavigator "new item" the form goes to last item (its ok) but in the table item "ID" (auto...
View Articlecombobox to allow zero in table (winforms, c#)
Hello. Have a situation in which the user may not have or know the jurisdiction and not able to enter it when adding a new company. I currently have the following code for the insert and update of...
View ArticleDatabinding control properties to a property in an object array
I have an array of objects ( s1values() ) . In this case type of opc.da.itemvalueresultThese itemvalueresults have a Timestamp() as date property, and a value() as object propery.I'd like to bind the...
View Articlehow to show images from database into window Application (thumbnail View)
hi therei want to show Images (as Search Result) from database but i dont know how to do iti am using "dataGridView" but it not so effective in Images
View ArticleMake Datagridview with Context Menu for Exporting and Importing data
Hi All, How to make a Datagridview with Context Menu for Importing and Exporting Data from XML /Excel/CSV and HTML.. Please guide me.Thanks and regards,Lakshmi Narayanan.S
View Articleauto value in text box on mathemitic calculation
i have 5 text box on formi want text box5 = textbox1-(textbox2+textbox3) when i enter the nubmer in textbox1,2,3,4, how i do it
View ArticleDataGridView.DataSource throwing Index was out of range exception
Hello all, I'm having a problem with DataGirdView. I am using a BindingSource object to bind that DataTable object to the DataGridView and I get the following exception thrown on the line I set the...
View Articlecombox Dictionary and listing
I have a combow that's filled with files. I wanted to be able to see the description for the file. It's a one line description.when I scroll up and down the combow box. and I stop on a file in the...
View ArticleDataGrid Locks Up When Scroll Bar Should be Shown
I am working with C# and .Net 1.1 (VS 2003). I have a DataGrid docked to fill on a dialog. I then dynamically populate the table that is the source for the DataGrid one element at a time. It seems like...
View ArticleCustom check box in ListView
I have a ListView in which I want the the Checkbox column to be the last column of the ListView. I am not able to adjust this default checkbox column . And When I am adding custom checkbox column then...
View ArticleBinding to HashSet
Hi,We're trying to data bind to a HashSet but found that it isn't working as expected.var list = new HashSet<string>(); list.Add("David"); list.Add("Peter"); list.Add("Paul"); list.Add("Mary");...
View ArticleHow to get the value of checkbox in the DataGridView?
In a DataGridView,There is a column,It's type is "DataGridViewCheckBoxColumn",How can I get the status of this checkbox? ArrayList aList = new ArrayList();foreach (DataGridViewRow row in...
View ArticleDataGridViewComboBoxCell value is not valid. in c#
Hi all,i m really stuck up with this problemI am creating c# desktop application for inventory management.In one of the forms I want to display datagridview with three...
View Article