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

preview_player
Показать описание
Insert Row To DataGridView From Another Form In C#

------------------------------- Check out my C# Projects! ---------------------------------

if you want to support our work, consider supporting the channel with a coffee!

----------------------------------- C# PRODUCTS -----------------------------------

------------------------------------ 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 -----------------------------

--------------------------------------------------------------------

programming projects with source code:

C# And Java Programming Books

#Csharp #DataGridView #Row

------------ COURSES YOU MAY LIKE ------------

Рекомендации по теме
Комментарии
Автор

FIRST VIDEO WHO LEGIT HELPED ME, THANK YOU MAN <3

Gadorak
Автор

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 .

lostsoul
Автор

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!

Dadhustle
Автор

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

jcortiz
Автор

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

💯

sysquestcomputacioncorp
Автор

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

theyo
Автор

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

javosq
Автор

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 :/

KinoDarkvall
Автор

Hi i would like to ask what is the reason for this problem " '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.

sharina
Автор

thanx, the method number 2 is work successfully

oumaimasouid
Автор

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!

ecaichino
Автор

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

Alina-gruv
Автор

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

anugrah
Автор

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

Ulric_PenDo
Автор

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

Svetlyi_chelovek
Автор

Amazing but add some sound in your vedio

usmanghani
Автор

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.

tufelahmedlokhandwala