408 Topics

Member Avatar for
Member Avatar for skran

Hi all! I m trying to filter a datagridview (connected to sql server). I have used if statements in order to take all the possible combination but now I have 8 textboxes into which the user should insert values and filter the datagridview.. it is too complex.. I have asked …

Member Avatar for M.Waqas Aslam
0
407
Member Avatar for haqayyum

hi daniweb members I am using visual basic 2008. i have a listview and a datagridview which have both 3 columns like ProductCode,ProductName & ProductPrice. Now i want to pass listview values to datagridview in the same sequence. I want that when i double click on any row in the …

Member Avatar for codeorder
0
1K
Member Avatar for skran

Hi all! I try to filter a datagridview and I wrote an sql statement for that reason. The problem is that although I achieved to have multifilter I can find how to make my cod ignore the criteria which are null (empty criteria, when the user doesn t give any …

Member Avatar for skran
0
264
Member Avatar for skran

Hi all! I use vb2010 and I try to filter a datagridview. I achieved to do this but not at the column of dgv like in excel.. I found information about datagriviewAutofilterColumnHeader library but i dont have this library and I dont know if it is ok fro vb2010. I …

0
104
Member Avatar for geoamins2

Could you please tell me how to clear the old data from the datagridview in vb.net.. the below code is retrieving the data from table and display in a gridview for particular person. but when i wanna check the next person record if he dosen't have record so the previous …

Member Avatar for pritesh2010
0
5K
Member Avatar for PutingPanday

I want to populate my table in datagridview from my access database table please help... I'm not just trying to bind the table in access to my datagridview...I want to put the data's in my access database to my table in datagridview so far this is my code..... Sub filldatagridview() …

Member Avatar for kothaisaravan
0
2K
Member Avatar for badllama

Howdy. I'm just starting to learn .NET & C# and picked a simple project to start. I'm using VS 2008, created a Windows Form that opens an XML file, puts the data into a BindingList and shoots that out to a DataGridView. I created an "add data" button that opens …

0
93
Member Avatar for nedrosat

Good Morning [B]Everybody[/B], I've a problem with a DatagridView in column operation. this is a Screenshot [ATTACH]23226[/ATTACH] My problem that i want to select an idPersonnel for exemple it brings me the name & family name in textboxs and i didn't found how to do it :( plz help me …

Member Avatar for Netcode
0
135
Member Avatar for thegrovesy

Hi all, I have created a custom datagridview cell type (which allows the user to either enter text or add an image). This is working as I had planned, with one exception... This new cell type, which is set as the CellTemplate, has a button to the right of the …

Member Avatar for thegrovesy
0
315
Member Avatar for sharadkmittal

I have unbound datagridview. It has 4 textBox column and 2 comboBox column which i have defined at design time. For combo,I have databinded the columns. When I add the row: datagridview.Rows.Add() a row is added but combo box are not loaded. Please help how should i add the row …

0
100
Member Avatar for anwar.mustafa

I am developing a Windows Forms Based Application using dbo.database and Visual Basic: I populate some Orders in DataGridView1 using LINQ 2 SQL from "tbl_Orders" where OrderStatus is "Pending". I change OrderStatus Column Type to "CheckBox" in DataGridView, Now I want that when I select some records (Orders) by checking …

Member Avatar for adam_k
0
304
Member Avatar for ginnipig

Hello All, I have two tables that can't be changed. One contains Stock codes / country codes, the other has country code / description for each code. I have a combobox with all the country descriptions that can be added to the stock code table. my problems is i can't …

Member Avatar for ginnipig
0
238
Member Avatar for visored23

Good day. hi, i would just like to know if datagrid has a default number of columns in C#? If yes, how many columns? How can I set my datagrid to a certain number of columns only?. Thanks alot for your help.

Member Avatar for sknake
0
65
Member Avatar for sway1101

Hey all, Came across this site while scouring the web for a solution to my problem. All of the answers on here seem very helpful and non judgmental. That is hard to come by in a lot of programming forums, so thanks. My Question. I am using VS 2008 and …

Member Avatar for Unhnd_Exception
0
2K
Member Avatar for pepyrs

Hello guyz, First of all, sorry for starting new thread with similar topic but I read each and still can't figure out how to do it. I'm having a database, using GridView I retrieve the data into my WEB application. Then I set the rows to editable (not sure if …

Member Avatar for jbisono
0
121
Member Avatar for alinutzu

Hi. I have an bounded datagridview with cell decimal different formating (N2 and N4). If I enter a 4.5265 value to a cell with N2, I formated this to appear 4.53 ... and this is wonderfull. My problem is when I try to save data ... in my sql table …

Member Avatar for alinutzu
0
320
Member Avatar for krishnisilva

hi there, how can i validate a data grid view column to enter only the date in the data grid view column. i am doing this in a 2008 VS C# standard edition software. how can i do this. thankx

Member Avatar for FijiXzone.com
0
2K
Member Avatar for alinutzu

Hi. I have a bounded datagridview and it's work fine. I want to know if I can to add a combobox column to datagridview. Thanks for all.

Member Avatar for riteshbest
0
171
Member Avatar for bunik34

Hello everyone this will be my first post. I am happy that there is a forum like this with very supportive people.:) So on topic.. I am a student creating an Inventory System software for my school using VB on VS 2008. I am having trouble saving items from a …

Member Avatar for Alexpap
0
193
Member Avatar for juniorsilver

Hey guys I'ld really appreciate if u can help me with this. I'm building an application that has an access database for storing codes for voters. my problem is that after i update my database with the usual vb codes, i'll have to exit the application before the datagrid view …

Member Avatar for juniorsilver
0
2K
Member Avatar for SyncMaster170

I am having a problem with my C# datagridview. When I add data into it, it doesnt auto update. And nothing I found online works to update the view for the user during runtime. I've used refresh(), update(), invalidate(). Nothing seems to work. Can anyone help me out with this …

Member Avatar for SyncMaster170
0
512
Member Avatar for bestofb

Hi, I have searched alot but can only find info on moving entire rows bound between 2 datagrids, but noting on moving single cells. I have some code below that works ok from DGV to textboxes but not from DGV1 to DGV2. [CODE] Dim i As Integer i = DataGridView1.CurrentRow.Index …

Member Avatar for bestofb
0
183
Member Avatar for caseyl89

I have the code to parse data to a Datagridview and then export that into an excel spreadsheet. How can I export the headers of the datagridview? [CODE] var bs3 = new BindingSource { DataSource = query }; dataGridView1.AutoGenerateColumns = true; dataGridView1.AutoSize = true; dataGridView1.DataSource = bs3; } } private …

Member Avatar for caseyl89
0
698
Member Avatar for DriveU

My Application : Windows Form Application Language : C# I have a DataGridView which I populate with some custom data. Some of the cells are DropDowns that I populate by EnumTypes Some need to be populated by Objects which are multicolumn. On Selection I want to show the MultiColumn Lists …

Member Avatar for nick.crane
0
182
Member Avatar for ktimov1

I have an XML file that is displayed on a DataGridView driven by a dataset. I am having trouble setting up a filter where a user can enter information in a textBox then have the DataGridView filter to find results. The XML File is displayed on the DataGridView using this …

Member Avatar for rakesh_pooja
0
533
Member Avatar for junharefa

Hi all, I want to create code to delete row in datagridview based on checkBox selection. I've managed added the checkBox Button using code below: private void FormTampil_Load(object sender, EventArgs e) { DataGridViewCheckBoxColumn checkboxColumn = new DataGridViewCheckBoxColumn(); checkboxColumn.Width = 30; checkboxColumn.DefaultCellStyle.Alignment = DataGridViewContentAlignment.MiddleCenter; dataGridView1.Columns.Insert(0, checkboxColumn); // add checkbox header Rectangle …

Member Avatar for Mitja Bonca
0
372
Member Avatar for BeejCyr

MS strikes again. In my tiny little mind this should be a no brainer but I just don't see how to make this work. I have an unbound DataGridView control where I have defined the columns at design time. Currently to add a new row I use a like this: …

Member Avatar for Oxiegen
0
980
Member Avatar for kvandenbosch

I have a datagridview with two columns: species and variety, where the dropdown list in variety depends on the species chosen in column 1. I have no problem setting the dropdown list for a new, blank record; the problem comes when I am populating the grid with existing records. I …

0
78
Member Avatar for ginnipig

Hello all, I have a DataGridView that is being populated via SQL with one table and is being filtered by Stock Code. I need to sort the view of one Stock Code by Nutrient names, but the sequence number is in anther SQL table. it would be easy if i …

Member Avatar for ginnipig
0
127
Member Avatar for judithSampathwa

hi there, does anyone know how to make one column in the datagrid view to become readonly, thanxxxxxx

Member Avatar for DeathEater
0
153

The End.