I hate when my teachers take their time to explain what they're typing, explaining the obvious. Best tuto ever! one small detail ,it would have been a wonderful addition if you posted the code to...
Great video. I'm new to C# but have lots of "lapsed" coding experience. I loved the way you created the class objects and the list to use with the grid. These tutorials are for beginners so it was perfect. I have seen so many othe tutorials that make the guy on the video sound clever but they struggle to get the main objective across. For completness, you could have updated the data in one of the cells with the text you edited. Great work, keep it up
I certainly appreciate your work and sharing this, but just a heads up; the audio is just barely loud enough (youtube max volume and my PC on max volume).
Nice tutorial, It helps me to create a view for data using data grid view, before I was creating custom UI for editing and viewing purpose, but Now I decided to use custom UI to provide basic data to user for records and use data grid view to view all data to user! Thanks a lot!
Nice tutorial but how do I update the data as well as add and remove rows? I added an update, add, and remove button but I'm not sure what code to use.
You can Add record directly to the list instead because I think Data grid view will use the list to display data, but you might have to update the data grid view
Binding is so easy, for your reference. DataSource accepts all sorts of IList, DataMember is the value of the column from the dataSource SET, DataValue is what is returned on the click. Please, see other videos as I believe I have used it somewhere.
@@danielruzsik6440 Ohh, im sorry i dont know anymore, this project is about 3months old and i dont have a clue how i fixed it, but it wasnt that hard i think
@@ProgrammersNerds I did that but the Delete is not working in random order with the code. It just deletes 1st,2nd,3rd, when i try to select 5th it deletes the 1st. How do set it up to work at random selection of row?
@@krastinabrunson34 every control in Windows Forms, has a Tag object property, you can attach your object here, like a class instance which represents your row, and then you have to get the selected row, through dataGridView1.SelectedRows[0], and then you get the object from .Tag and cast it to your object. and in the object you will have some sort of ID that represent your PrimaryKey i your Table. If you have problems, please share your code and I will be glad to help.
Hi, i'm trying to write program which is has to connect ftp server and take , add and delete data data from server. I have no idea how to do it. i have server http address also id and pass. Can you show us how to do that if its not so hard? i watched some videos already but they have path of files, I dont have path just address of server
Hi Edgar, this is what you need to do (an example): using (var client = new WebClient()) { client.Credentials = new NetworkCredential(ftpUsername, ftpPassword); client.UploadFile("ftp://yourfile.txt", WebRequestMethods.Ftp.UploadFile, localFile); }
Is it even possible for me to load pictures from online database in fowlayoutpanel, then on click enter a new form with only selected object (i managed these two things) but then I want to have a button "add to cart" which is a completely separate form. The cart should be consisted solely of datagridview which collects products added to it. Right now I can only showcase each last added product. It seems they dissappear as soon as I leave the form (cart) with datagrid on it.
Of course, usually online images or files rely on some file server to be served, and accessed via urls. Having accessed the resources and created image objects you can displat them anywhere
Hello Adem, coding fast is because of my experience with coding. let me give you an example. if you want to write code like Console.WriteLine / / use write Console.WL + Tab it generates automatically. If you want to create a property on your class then write: prop + double tab, etc etc.
Seriously? You cant build your project and class ahead of time. I know how to create a class and add items to a list. Why waste everyone's time by not setting up ahead of time so you can show us what the video was SUPPOSED to be about?
Because it takes very little time and complete newbies watch these videos along with rusty professionals. The newbies would be lost without a proper step-by-step. If you're a huge dude and your time costs five bucks a second, read documentation. That's dense and quick if you know what you're doing. Otherwise check your attitude.
That cursor is so visible! I had no trouble locating the cursor during this video. 10/10
Omg this is exactly what I need. I have absolutely no knowledge on how to use visual studio. Thank you very much. Have a nice day :)
I hate when my teachers take their time to explain what they're typing, explaining the obvious.
Best tuto ever!
one small detail ,it would have been a wonderful addition if you posted the code to...
We aim to provide hands on and direct to the point tutorials.
Great video. I'm new to C# but have lots of "lapsed" coding experience. I loved the way you created the class objects and the list to use with the grid. These tutorials are for beginners so it was perfect. I have seen so many othe tutorials that make the guy on the video sound clever but they struggle to get the main objective across.
For completness, you could have updated the data in one of the cells with the text you edited.
Great work, keep it up
Thanks for your feedback. I try to make short vids, busy days nowadays
Thank you for this instruction. It is very clear and well stepped through on the procedure.
Glad you enjoyed it!
I certainly appreciate your work and sharing this, but just a heads up; the audio is just barely loud enough (youtube max volume and my PC on max volume).
Thanks, they were recorded with laptop mice so I understand you its a bit low :(
Мужик, ты лучший, просто это знай
Thnx 🙏
Nice tutorial, It helps me to create a view for data using data grid view, before I was creating custom UI for editing and viewing purpose, but Now I decided to use custom UI to provide basic data to user for records and use data grid view to view all data to user! Thanks a lot!
i'm glad you've found it useful. peace!
Nice tutorial but how do I update the data as well as add and remove rows? I added an update, add, and remove button but I'm not sure what code to use.
Add databound button
In the button click event you can give operations code
You can Add record directly to the list instead because I think Data grid view will use the list to display data, but you might have to update the data grid view
Excellent tutorial. Great style. You covered the perfect amount of information for a complete sample solution. Thanks for sharing.
Thanks Will
This is really really helpful ! !
Excellent video!
Also, it sounds like your computer's fan curve is very aggressive lol
i want to see more about datamember, datasource and binding
Binding is so easy, for your reference. DataSource accepts all sorts of IList, DataMember is the value of the column from the dataSource SET, DataValue is what is returned on the click. Please, see other videos as I believe I have used it somewhere.
Awesome!!!
it says inconsisten accessability: property type 'list' is less accessible then Property 'Form1.People'
i fixed it lol
good (Y)
@@Laugny how did you fix it?
@@danielruzsik6440 Ohh, im sorry i dont know anymore, this project is about 3months old and i dont have a clue how i fixed it, but it wasnt that hard i think
@@Laugny not a big deal, thanks anyway :D
Awesome, you helped me understand dgv. Thank you. Do you logically after of course learning you figured how to set button or text box controls?
Every time you update the dgv, you can set text property for example to count number of rows or so.
@@ProgrammersNerds I did that but the Delete is not working in random order with the code. It just deletes 1st,2nd,3rd, when i try to select 5th it deletes the 1st.
How do set it up to work at random selection of row?
@@krastinabrunson34 every control in Windows Forms, has a Tag object property, you can attach your object here, like a class instance which represents your row, and then you have to get the selected row, through dataGridView1.SelectedRows[0], and then you get the object from .Tag and cast it to your object. and in the object you will have some sort of ID that represent your PrimaryKey i your Table. If you have problems, please share your code and I will be glad to help.
Sir how do u duplicate using drag ?????
thank you very much!!
You are welcome
thank you, this is really helpful.
Glad it was helpful!
Great, I learned some good stuff
Subscribe, will post some more
At 2:36 you remove "throw new NotImplementedException();" and I receive errors when I remove it. Any suggestion's?
Thank you very much
You are welcome
I hope there's a button to enter then view in datagridview
Hi
I have problem in passing data in grid view, if it’s possible can you help me
Thank you
Any IEnumerable, IList passed to the list.DataSource will work
спасибо
Thank you
Did you subscribe?
but did you subscribe tho? :'DDDD
@@ninnaahk did you :D
Hi, i'm trying to write program which is has to connect ftp server and take , add and delete data data from server. I have no idea how to do it. i have server http address also id and pass. Can you show us how to do that if its not so hard? i watched some videos already but they have path of files, I dont have path just address of server
Hi Edgar, this is what you need to do (an example):
using (var client = new WebClient())
{
client.Credentials = new NetworkCredential(ftpUsername, ftpPassword);
client.UploadFile("ftp://yourfile.txt", WebRequestMethods.Ftp.UploadFile, localFile);
}
Is it even possible for me to load pictures from online database in fowlayoutpanel, then on click enter a new form with only selected object (i managed these two things) but then I want to have a button "add to cart" which is a completely separate form. The cart should be consisted solely of datagridview which collects products added to it. Right now I can only showcase each last added product. It seems they dissappear as soon as I leave the form (cart) with datagrid on it.
Of course, usually online images or files rely on some file server to be served, and accessed via urls. Having accessed the resources and created image objects you can displat them anywhere
Good movie
DUDE YOU ARE SO FUCKING AMAZING
Could you please comment me the shortcut keys you use? You are coding very fast.
Hello Adem, coding fast is because of my experience with coding. let me give you an example. if you want to write code like Console.WriteLine / / use write Console.WL + Tab it generates automatically. If you want to create a property on your class then write: prop + double tab, etc etc.
4:53
drag n drop, really man?
Great video, but you type superfast lol
Used to do 120wpm, now Its less 🤣
Seriously? You cant build your project and class ahead of time. I know how to create a class and add items to a list. Why waste everyone's time by not setting up ahead of time so you can show us what the video was SUPPOSED to be about?
Because it takes very little time and complete newbies watch these videos along with rusty professionals. The newbies would be lost without a proper step-by-step. If you're a huge dude and your time costs five bucks a second, read documentation. That's dense and quick if you know what you're doing. Otherwise check your attitude.
public partial class Form1 : Form
{
SqlConnection con = new SqlConnection(@"Data Source = LAPTOP-2A5CNVC3\SQLEXPRESS; Initial Catalog = Countries; Integrated Security = True");
SqlCommand cmd = new SqlCommand();
public Form1()
{
InitializeComponent();
}
private void btnClear_Click(object sender, EventArgs e)
{
dgvShowData.DataSource = null;
}
private void btnExit_Click_1(object sender, EventArgs e)
{
Application.Exit();
}
private void btnShow_Click_1(object sender, EventArgs e)
{
try
{
con.Open();
cmd = new SqlCommand("Select * from Coutnry", con);
cmd.ExecuteNonQuery();
SqlDataAdapter da = new SqlDataAdapter(cmd);
DataTable dtable = new DataTable();
da.Fill(dtable);
dgvShowData.DataSource = dtable;
con.Close();
}
catch
{
MessageBox.Show("Error 404");
}
}
private void dgvShowData_CellContentClick(object sender, DataGridViewCellEventArgs e)
{
}
}
}
Thank you