datagridview

  1. 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...
  2. 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...
  3. 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
  4. 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...
  5. 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...
  6. 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...
  7. 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...
  8. G

    Question bound or unbound or Datagridview and combobox?

    This is my first post here so hope I have posted correctly. I am in the process of converting my windows form app from VB6 to vb.net (VS2012). One of my forms is a weekly work roster (or schedule) which was working fine using flexgrid. Now I am looking at Datagridview to replace the...
  9. D

    Question combox on datgridview not matching column

    Hi I have a Combobox on a dataviewgrid on a form. The DataGridView is tied to my customers table and shows the records alright and has a County column. The Combox is tied to my County Table and consists of an ID column and County column and is working well. But I can't get the combox to...
  10. M

    Overload resolution failed

    Hello below is my code, i got this error Error "Overload resolution failed because no accessible 'New' can be called without a narrowing conversion:'Public SubNew(selectCommandText As String, selectConnection As System.Data.OleDb.OleDbConnection)': Argument matching parameter 'selectConnection'...
  11. M

    selected row into array

    Hello guys, i have a code that would delete a row from datagridview and mysql. Now what i wanted to do is to delete multiple row instead of one. possible? command.CommandText = "delete from " & cmbTable.Text & " where ID = " & Val(DataGridView1.CurrentRow.Cells(0).Value.ToString)...
  12. C

    Mapping datatable that I am binding to a datagridview

    Hi: I would like someone can help me, I want to mapping a datatable to show in the datagridview the names in diferents columns. i placed an image. thanks in advance.
  13. tonifirnandes

    Question Datagridview Cell Value Type Validate

    Hello All the best programmer, Good Morning and Sorry for disturbing. i have some problems all, hopely you would like to help and could help me thanks. my problem is : i need validate or check the data or value in datagridview cell before it update to the database, so i can check if the user...
  14. tonifirnandes

    Question export data from excel to datagridview and database

    Hello my friend the best programmer and kind one:) my friend, i've a problem, i would like to export data from excel to datagridview now, that before i have could to export data from datagridview to excel but now i do the other side that how to import data from excel to datagridview. actually...
  15. tonifirnandes

    Question Date Time Picker on DataGridView Column

    Hello dear all the best programmer, i am so sorry for disturbing but i need help from you all seriously, i am newbie in vb.net so i get problem in a task that i am sure you can solve it, and hopely you would like to help me to solve it, my problem is how to put datetimepicker on some column for...
  16. tonifirnandes

    Question database application with datagridview and binding navigator

    Hello ALL the best programmer, before go to my question today, let me introduce my self : my name is toni firnandes from batam indonesia. Nice to get you all in this forum and hopely you would like to help me solve my problem. I have problem to make application database using sql server...
  17. S

    Question validating input in DataGridView?

    Dear All I am so happy about this web site and its forums, since I get perfect answers to my doubts. Thanks to all and special thanks to Ian who helped me several times. I use VB.NET 2010. Now I have a problem with DataGridView control. I need to add test details of students to the grid...
  18. C

    Question Saving Data with DataGRidView

    I am sure someone must have posted an answer on this but I cant find it. Just starting using VB2010 so on a steep learning curve, but finally making the leap from easy VB6 ! I have a project with (currently) 4 forms - all containing a DataGridView populated from MS Access via a DataAdapter /...
  19. VBobCat

    How to clear Sorting of a DataGridView?

    My Form has two data-unbound datagridviews, with the same structure, differing only about which columns are visible. It aims to allow user to select persons from the first one, and add them to the second one. In this second datagridview, some settings are to be made about each person, hence it...
  20. R

    Writing from DataGridView to XML

    I can successfully use the code below to import data from an XML file into a DataGridView, but now I need to be able to write the same data back out to XML. Dim xmlDatadoc As XmlDataDocument = New XmlDataDocument() xmlDatadoc.DataSet.ReadXml(OpenFD.FileName) Dim ds As DataSet = New...
Back
Top