Jason.... I have only gone and worked it out dude :-)
It should read DataGridview1.Datasource = dataset1.tables["Employees"];
I have actually surprised myself
I don't understand Jason.. You talking about the IListSource?
There is also a I collection and ItypedList....... and how the hell do you now this stuff off by heart? :-)
Ok mate. Thank you I will have a look at Agile. I have a fairly good design patterns resource to. Could one of you chaps give me some advice on the following data bind? The code seems to compile but yet the DataGrid remains grey. Any ideas?
Cheers
using System;
using...
Thank you Jason. It does put a lot into perspective.
Until about a month ago I was a Business Analyst contractor working within Government. For me it wasn't about the daily/hourly rate but the day-to-day duty and achievements. It started to get a bit repetitive and boring so I literally jut...
Thanks Bob. That makes a lot of sense. Think my problem is I'm trying to learn to much and getting very frustrated as I usually (well like t think) I pick things up fairly quickly. I was ready to throw the towel in but fater reading your post, maybe it is not to bad and everyone has to start...
Hi Jason,
I do not understand - sorry. In the second block of code I have created a new Datatable called myDataTable. Then I have gave it a value by assigning mydataset.table["Customers"]..... or have I got that wrong?
Isn't the first line of code just referencing the object but not holding...
Guys,
Really sorry about this but I have another question (maybe more dumb that the last)....
in terms of creating a table (by the book), why is it the construction is
DataTable mydatatable = mydataset.Tables["Customers"];
Could we not use ....
DataTable mydatatable = new DataTable()...
Aaaaaaahhh! Makes sense now. Strange ting is it still works just as well without the curly braces as with my original post??
Sorry for bothering you mate.
Thanks.
Harley,
Quick question about the above.... sorry!!
In the loop...
foreach (DataColumn datacol in dt.Columns)
Console.WriteLine(dRow[datacol]);
Console.WriteLine("================");
.... I understand the loop carries the value of the first column and the prints out 'John' but why...
No problem mate. You do understand though you are now my beacon of c# hope though - time pending of course :-) As I said in my message I sent you a facebook message and another message on your forum ... bit stalkerish I know :-) However most importantly strictly hetro :-) (people may get the...
There is no way you two are novices. I would say errr, seasoned professionals. Cheers for that that Harley. The stupid thing is I have been using the Readline(); method all the way through learning but for some some strange reason I just didn't pick it up at this point.
On a another note...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.