Without your code, we can't help: but that kind of error normally comes from an SQL Substring function - so start by looking at your queries and stored procedures, and the data you are passing to them.
Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...
into a dataset and then I try to load the dataset into a list. The problem is there are 2 root tables (person and phone) in the main table (list) and I am not sure how to loop through the dataset to fill my list (List<Person> ListP = new List<Person>())
so that the the content of each would match the correct parts.
ListP would contain Micky Mouse, 1111111, 2222222,
ListP would contain Donald Duck 333333
ListP would contain Pluto
ListP would contain Goofy 5555555, 6666666, 7777777
I don't know why I wrote "root" tables. I meant 2 tables (person and phone) and that is what I don't know how to loop through properly and put there content into my list (List ListP = new List()).
I will try that change you wrote.
For .NET 4.5 with async / await, using await Task.WhenAll(tasks); is better than using Task.WaitAll(tasks);. The former releases the current thread until the tasks are complete; the latter blocks the current thread waiting for the tasks to complete.
some month ago, google have deprecate the 2nd version of "Google Calendar API", and my windows application stop to work.
Now I start to rewrote the code, but i discover a surprise, to add, delete, modify, list the appointments in 10 different google calendar, i need to do the authentication with OAuth2.0. And now appear the problem, I have stressed google to find an example of code, but every code was write for webapplication(asp.net) and not for a standalone windows application.
Somebody can help me to find a solution/example to integrate in my code????
I cannot get anything to work to add the code at runtime, besides having a button click add row by row (which I do not want and cannot use) so somehow I've done something in the beginning to break it in trying to figure this out, and now that I've asked for help and gotten working examples, it is thwarting my ability to get it to work properly.
Even the code from the msdn site isn't working and my data grid is indeed called dataGridView1?
I have a problem in my project ( Camera Base Attendance system ) ....
I have two pictures and I need to find the diffrence between them by using ( blob center ) ,
also to divide the image to 6 parts and find the center of each part.( to check the absence ).
The data in the first 2 columns shows up just fine (i.e. Value 1 and Value 2).
But there is nothing that shows up in the drop-down combobox in the 3rd column. (I'd expect to see "Item 1" and "Item 2") in the drop-down combobox. I see the down-arrow on the combobox but when I click it, nothing happens.
works for me. Just tried it.
Make sure the third column is defined in the designer and set as a DatGridViewComboboxColumn.
It does react a little unnatural in the sense you need to click more than once to drop down the items.
I made a winforms app, dropped a DataGridView on it and only changed the Columns property (2x textboxcolumn, 1x comboboxcolumn). Then I used copy/paste on your code.
You should ask in the Comments and Discussions for the article.
The author will be notified.
Asking here doesn't notify the author of the article and depends on the author "just happening to notice" this question.
A positive attitude may not solve every problem, but it will annoy enough people to be worth the effort.