C# - How To Add Row To DataGridView From Another Form In C# [ with source code ]

Sdílet
Vložit
  • čas přidán 1. 07. 2019
  • Insert Row To DataGridView From Another Form In C#
    Source Code: 1bestcsharp.blogspot.com/2019...
    ------------------------------ Check out my C# Projects! --------------------------------
    ▶ Inventory Management System - bit.ly/Csharp_Inventory
    ▶ Students Information System - bit.ly/Csharp_Student
    ▶ Contacts Management System - bit.ly/Csharp_Contacts
    ▶ Hotel Management System - bit.ly/Csharp_Hotel
    ▶ Real-Estate Management System - bit.ly/Csharp_RealEstate
    ▶ All My Programming Projects Here - bit.ly/2HrU8hK
    ▶ My Source Code Store Here - bit.ly/2OsC0TU
    ---------------------------------- C# PRODUCTS ----------------------------------
    ▶ Get C# Projects Bundle - bit.ly/CsharpProjectsBundle
    ▶ Learn C# And More - bit.ly/CoursesList
    ----------------------------------- Project Description -----------------------------------
    In This C# Tutorial We Will See How To Insert A New Row To a Datagridview With Data From TextBoxes In Another Form Using C# Windows Form and Visual Studio Editor .
    1 - we will create a form with a datagridview in it, + a button to open a new form.
    2 - we need to create a form with textboxes in it + a button to add a row with data from the textboxes when ever you click on the add button.
    ------------------------- C# Tutorials ----------------------------
    ▶ C# Create Calculator - bit.ly/CsharpCalculator
    ▶ C# Tic Tac Toe Game - bit.ly/CsharpTicTacToe
    ▶ C# Treeview Tutorials - bit.ly/CsharpTreeView
    ▶ C# File IO Tutorial - bit.ly/CsharpFile
    ▶ C# Insert,Update,Delete,Search,Display Images From MySQL Database - bit.ly/CsharpImagesMySQL
    ▶ C# And MySQL Tutorial - bit.ly/CsharpMySQL
    ▶ C# DataGridView Tutorial - bit.ly/CsharpDatagridview
    --------------------------------------------------------------------
    visit our blog 1bestcsharp.blogspot.com/
    facebook: / 1bestcsharp
    twitter: / 1bestcsharp_
    subscribe: goo.gl/nRjPKk
    programming projects with source code:
    1bestcsharp.blogspot.com/p/pro...
    C# And Java Programming Books
    1bestcsharp.blogspot.com/2015/...
    share this video: • C# - How To Add Row To...
    #Csharp #DataGridView #Row
    ----------- COURSES YOU MAY LIKE -----------
    C# Courses: bit.ly/2rnt3C4
    Entity Framework Course: bit.ly/2rl9HAr
    C# WPF Course: bit.ly/2DeWGv8
    ASP.NET Course: bit.ly/2D8yR82
    .Net Core Courses: bit.ly/2Oh6sD3
    Full-stack .NET Developer Course: bit.ly/2OfooOB
    Xamarin For Mobile Apps: bit.ly/2OKIG1g
    Web Development Course: bit.ly/33eai4h
    Javascript Courses: bit.ly/35oYKwq
    Python Course: bit.ly/2XIdWlD
    React Course: bit.ly/2KQ7vrB
    PHP Course For Beginners: bit.ly/2GxRodb
    Data Science Course: bit.ly/2Of3xL9
    Machine Learning Courses: bit.ly/2qHHBzh
    Docker Course: bit.ly/37wivnH
    Big Data Courses: bit.ly/35qSGU4

Komentáře • 37

  • @Gadorak
    @Gadorak Před 3 lety +5

    FIRST VIDEO WHO LEGIT HELPED ME, THANK YOU MAN

  • @Kamil32-nq6be
    @Kamil32-nq6be Před dnem +1

    THX, you really helped me a lot!

  • @Dadhustle
    @Dadhustle Před 2 lety

    Bless you! I've been at this for hours. Very helpful; was able to call method, which dynamically fills two differ grids -saved me substantial rewrite!

  • @lostsoul9147
    @lostsoul9147 Před rokem +1

    i just wanted to thank you so much you've just solved a problem that i've been facing that i couldn't solve, again Thank You .

  • @jcortiz3305
    @jcortiz3305 Před 2 lety +1

    Very helpful dude, I was looking for something like this and I finally found a good solution!

  • @ajini.p
    @ajini.p Před 4 lety +1

    YOU JUST SAVED MY LIFE!!!!!! LYSM

  • @theyo1966
    @theyo1966 Před 3 lety +1

    MAN you helped me a lot :") thanks, bro! you are the best!

  • @chopo156
    @chopo156 Před 4 lety +2

    you save my life, thanks so much!!!!!!!

  • @sysquestcomputacioncorp27

    ME ayudó el método 2, excelente, todo el día con este problema y por fin me diste luz. Gracias
    💯

  • @bitiset
    @bitiset Před rokem +1

    Merci 3lik wld ma
    😍

  • @paullushnykov
    @paullushnykov Před 3 lety +1

    Very useful video, thanks.

  • @maralgaisiyeva4499
    @maralgaisiyeva4499 Před 2 lety +1

    THANK YOU SO MUCH MAN!!!!

  • @infopedictechie1667
    @infopedictechie1667 Před 4 lety

    best tutorial video in internet

  • @oumaimasouid4513
    @oumaimasouid4513 Před 2 lety

    thanx , the method number 2 is work successfully

  • @abdullahalal-hammadi9316
    @abdullahalal-hammadi9316 Před 2 lety +1

    thanks alot 😘

  • @aymanmicky3232
    @aymanmicky3232 Před 3 lety

    Thank you so muchhhhh

  • @nadirabbasov6029
    @nadirabbasov6029 Před 2 lety

    Thank you bro

  • @poorpeoplegovanah
    @poorpeoplegovanah Před 2 lety

    Thank you sir

  • @ecaichino
    @ecaichino Před 2 lety

    Hi! This video is super helpful and it actually works but I'd like to know what fg and fgrid does to the datagridview file. I'm new to c# but I still couldn't understand these basics.. thank you very much!

  • @Svetlyi_chelovek
    @Svetlyi_chelovek Před 2 lety +1

    Exception: "Rows cannot be programmatically added to the datagridview row collection when the control is data bound"

  • @Alina-gr7uv
    @Alina-gr7uv Před 4 lety

    Hello, thanks for the video, How can we update the datagridview from that form? Thanks in advance!!!

  • @KinoDarkvall79
    @KinoDarkvall79 Před 3 lety +2

    Hey man could you help me out?
    When I add the code to the button to add data to the rows, the part with "dataGridView1" shows error: "is inaccessible due to its protection level" I'm still learning :/

    • @theyo1966
      @theyo1966 Před 3 lety +1

      you have to make sure you put the modiefier of Data Grid View in public

  • @sharina2849
    @sharina2849 Před rokem

    Hi i would like to ask what is the reason for this problem " System.InvalidOperationException: 'Rows cannot be programmatically added to the DataGridView's rows collection when the control is data-bound.'
    " i tried fixing it using the source code yet still not working.

  • @javosq367
    @javosq367 Před 9 měsíci

    im doing this in form 3. where the 4 is where is my FormInfo, what code should i use in program.cs

  • @anugrah53
    @anugrah53 Před 3 lety

    How can we edit the existing item and display in the grid

  • @usmanghani9516
    @usmanghani9516 Před 3 lety

    Amazing but add some sound in your vedio

  • @MirzaAli85
    @MirzaAli85 Před 5 lety +2

    First sir

  • @revine_music
    @revine_music Před rokem

    How about with a database?

  • @sarafina2551
    @sarafina2551 Před 3 lety

    hoho thankyou

  • @Ulric_PenDo
    @Ulric_PenDo Před rokem

    is it just me but there is no audio... I will attempt to figure this out from just the code

  • @tufelahmedlokhandwala668

    Using mic could be a better option for explanation. Having huge amount of subscribers but still afraid to speak up means you are not confident about your videos.

  • @themiyalumia1383
    @themiyalumia1383 Před 4 lety +2

    you save my life, thanks so much!!!!!!!

  • @yamanoboru1839
    @yamanoboru1839 Před 3 lety +1

    you save my life, thanks so much!!!!!!!