Thanks for the videos. I'm trying to do exactly what you are doing , so far so good. until when I try to add the ViewStudents sub-menu on 3:40. I'm not sure what I'm missing , but it does not load any ViewStudents when I try to type it in. so it underlines a red line as error.
do I have to define the ViewStudents anywhere in the program. I did not see you doing this .
2) Just copy his code as is in the ViewStudents.xaml.cs for the Window_Loaded() method. No need to change anything there. It will work just fine. Hope that helps!
dba, I believe that I got it working, however, I have a question. In my version of the Students table I have a FavoriteClassID field. This field points to the Classes table and using the ID I can JOIN to this table and figure out what the student's favorite class is. In my DataGrid, how do I do a JOIN so it would show 'SQL Programming' in the Grid instead of 8 (the ID for 'SQL Programming')?
Thanks for the videos. I'm trying to do exactly what you are doing , so far so good. until when I try to add the ViewStudents sub-menu on 3:40. I'm not sure what I'm missing , but it does not load any ViewStudents when I try to type it in. so it underlines a red line as error.
do I have to define the ViewStudents anywhere in the program. I did not see you doing this .
Thanks again.
eskashoo 2 months ago
he name 'con' does not exist in the current context
helpppppppppp
xvleura 2 months ago
@xvleura
before it was
SchoolDataDataContext data = new SchoolDataDataContext();
but he had changed it to:
SchoolDataDataContext con = new SchoolDataDataContext();
that' s where the con comes afterwards
90MrRager 2 weeks ago
Thanks Man It works
yasaucsc 3 months ago
I have a problem on 1:29.
The problem is 'con.' underline, so I can't compile the project. Could you please tell me how fixed it?
AndreiDB1 4 months ago
Great videos
Thanks
Rightwingful 8 months ago
This has been flagged as spam show
2) Just copy his code as is in the ViewStudents.xaml.cs for the Window_Loaded() method. No need to change anything there. It will work just fine. Hope that helps!
nadeem2009 1 year ago
Comment removed
nadeem2009 1 year ago
This has been flagged as spam show
Ok guys, I was able to figure out what he missed. It's a very simple fix to get it working. You really don't need a video for that. Do the following:
1) In the ViewStudents.xaml file change the Name of the DataGrid from "datagrid1" to "StudentGrid" as shown in the line below.
(my:DataGrid Background="White" AutoGenerateColumns="False" Height="200" HorizontalAlignment="Left" Margin="94,23,0,0" Name="StudentGrid" VerticalAlignment="Top" Width="313")
nadeem2009 1 year ago
Comment removed
nadeem2009 1 year ago
Comment removed
nadeem2009 1 year ago
k, im lost, i give up. cant follow this with the video missing
JoeG2324 1 year ago
@JoeG2324 Rename student project as School and the Namespace using refactor
then add those lines shows in this video 0:43
hirushan 1 year ago
Just write the code from the Window_Loaded method shown on 0:36 in the same method in your project in ViewStudents.xaml.cs.
The first line conects to the DB.
The second line retrives the students from the DB and puts them in a list called "students".
The third line assigns the students list as a source for the grid in the View Students window.
I hope this helps :)
santos122122 8 months ago
dude, you are missing a video
JoeG2324 1 year ago
your missing one what happened??? do an 11,5 :)
it had to be the linq part the main theme that i dont know :(
ee01239 1 year ago
dba, I believe that I got it working, however, I have a question. In my version of the Students table I have a FavoriteClassID field. This field points to the Classes table and using the ID I can JOIN to this table and figure out what the student's favorite class is. In my DataGrid, how do I do a JOIN so it would show 'SQL Programming' in the Grid instead of 8 (the ID for 'SQL Programming')?
HoltBuzzing 1 year ago
dba, it seems like the last tutorial was 11, but in the video you say this is tutorial13. Where is 12 go?
HoltBuzzing 1 year ago
Seems to be something missing between end of Tutorial 12 and start of this tutorial?
GeorgeRowlandHill 1 year ago