408 Topics
| |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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() … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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. | |
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 … | |
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 … | |
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 … | |
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 | |
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. | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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: … | |
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 … | |
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 … | |
hi there, does anyone know how to make one column in the datagrid view to become readonly, thanxxxxxx |
The End.