datagridview

  1. Runescope

    Question DataGridView padding still there even though it's set to zero

    Greepings, I've been banging my head on this for a few hours now and I can't seem to figure out a way to get around it. I've got a datagridview setup with lots of empty columns and rows. The user clicks into a cell to fill it with a pattern they've picked. I want the patter to go right to...
  2. Runescope

    Resolved Pick from DataGridView ComboBox with Pre-Filled Collection

    So I have a DataGridView control, it has a few columns, one column is a DataGridViewComboBoxColumn. I have pre-filled it through it's own Items collection with the numbers 0 to 9. I want to pick one of the numbers as a default when the program loads, how do I select it's index? Here's the...
  3. S

    Question Update Database and datagridview from textboxes

    I have an application with a datagridview on the bottom half of the page and textboxes, combo-boxes, buttons, etc... on the top half. When the user changes the highlighted row in the grid then it displays all of the information for that row in the objects on the top half. If user wants to change...
  4. D

    Question What does no value given for one or more required parameters mean? How to fix?

    Hi all, I'm making a program in which the user can update a table of their choice from a list box. When an item in the listbox is selected, it shows the MS-Access database in the DataGridView. When a user selects a cell in the DataGridView, it will show the ID, the field name and the actual data...
  5. P

    Question Adding and removing image columns in Datagridview

    Hi everyone, I?m having the following problem. I have a windows form application with 2 main forms, one of them is master form and the second one is the UNDO form, in the first form i input images in the datagridview based on the numeric key pressed, the second form is the undo form where i can...
  6. T

    Populate DataGridView With Multiple Arrays

    Hi again friends, So actually what I've been trying to do is practice collecting data from one of my temporary websites (more like a web page). I have added product details to this web page & was trying to practice parsing the data & then sending that data to either a listview or datagridview...
  7. L

    SQl Server doesnt update new values from Textbox Bind to Datatable

    Original Post: http://www.vbdotnetforums.com/sql-server/62234-need-update-sql-server-values-txtbox.html Using: SQL Server 2014, VS2015, VB I have a Datagridview that fills with a DataTable (Table). I have several Textboxes that are bind with their corresponding values from the binding...
  8. M

    Question Change to different SQL Server database

    I have a VB.NET (4.5) project in VS2013. In it I have several DataGridViews populated by a SQL Server 2012 database. The DGV and connection has all been set up with the wizards, so I have BindingSources, DataSets and TableAdapters for the DGVs - no custom coding to populate the DGVs. I need to...
  9. VBobCat

    Question Implement Column/Cell/EditingControl derived classes, host custom ComboBox control

    I have this custom Control class, derived from ComboBox. Its purpose is to provide a standard behavior for controls whose list of items will be populated depending on what user types in it as search criteria. Imports System.ComponentModel Public Class SearchBox Inherits ComboBox Private...
  10. E

    datagridview and DB Firebird

    Hello everyone. I am developing a Windows Forms application with Visual Studio 2010 and VB.net on the "load" of a form I inserted the following code that takes data from a Firebird DB and I would populate a "datagridview" but I can not: Private Sub Form1_Shown(ByVal sender As Object, ByVal e...
  11. T

    custom design for datagridview

    hello guys am making a car rental app i need your help on how to make a custom gridview or another solution and the result should be like the image attached thanks in advance
  12. W

    Problem Autoscrolling to last row of Datagridview

    As my datagridview fills and the autoscrolling control appears I want to have the last row of the datagridview to be displayed by default. Currently I have to manually scroll to the last row, but want this handled automatically.
  13. mond007

    DataGridView Image Button Cell

    Hi Does anyone know how to programme up a ?Delete Image Button? using an Icon for a DataGridView in Visual Studio .Net I am struggling find trying to get my last column in my DataGridview to have a delete icon instead of the a "Delete Button" and I want to display a little dustbin icon. I...
  14. mond007

    delete child rows when deleting parent row datagridview

    I have had a look in a number of areas but can not seem to work out the code to delete child rows when deleting the parent. See Private Sub DataGridView1_CellContentClick(ByVal sender As System.Object, ByVal e As System.Windows.Forms.DataGridViewCellEventArgs) Handles...
  15. S

    Question insert all rows of datagridview into database

    I am trying to insert all the rows of a datagridview into a database table. Below is my code and error message snapshot. Could plz tell me where m going wrong. Private Sub addnewclasses() Dim openAs String = db.OpenDB Ifopen<>"OK"Then MessageBox.Show("Error openining the...
  16. D

    datagridview in tab control

    Hi, I have a vb form with 4 datagridviews within a tab control with 4 tabs, my questions is when should I populate the dgv's ? Should I place the code in the main form load event or when the user clicks on the specific tab? I am using vb.net 2010 and sql server 2008 Regards
  17. E

    Question how to set a new bindingsource to a datagridview?

    OK, I have 2 bounded datagridviews in my form naming beneficiarydatagridview and beneficiarydatagridview1 which is bound to the same bindingsource... now heres the thing in my beneficiarydatagridview i have a search engine using textbox and a button, using the .FILTER feature of...
  18. M

    Question Refreshing datagridview

    Hi, I have a simple Windows app using a single form to manage a table in an Access database. I have a datagridview on the form that is linked to a bindingsource and the bindingsource is tied to a tableadapter's getData method. The logic is setup to save the data after each row that has...
  19. P

    Help me to update my datagridview

    Hi I am using vb.net to design my application and sql sever ce for database connection. In this i am using a form to insert the data into database and a datagridview for viewing and editing the data stored. My problem is when I insert a new data in my form, it was not updated on the...
  20. C

    Question If specified DataGridView header exists, add item to ComboBox

    Using MS Visual Basic 2010, I am importing a csv file into a DataGridView. The first row of the csv file imports as the header in the DataGridView (HDR=Yes). On the same form is a ComboBox. Once the csv file imports into the DataGridView, I would like to search the header row for the value...
Top Bottom