16,020,677 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View C++ questions
View Visual Basic questions
View Javascript questions
View .NET questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
Comments by ellisbay (Top 17 by date)
ellisbay
7-Mar-13 16:06pm
View
Nothing again :/// Tried with value2, value, text..
Same.
This is so frustrating..
Thank you guys for help, hope we`ll find solution :)
ellisbay
7-Mar-13 15:50pm
View
Nothing :/
I have changed everything as you suggested, but still- it copy data until found empty cells..
ellisbay
7-Mar-13 15:30pm
View
Nothing..
Look, everything works well- program doesn`t break- but instead of 123 rows, I get 23 in excel because 23th row in datagridview had several empty cells.
ellisbay
7-Mar-13 15:20pm
View
Not working. I`m starting to loop from 3 because I dont want to show first two columns in header.
Any other idea?
ellisbay
21-Feb-13 9:15am
View
But in gridview are shown updated fields.
ellisbay
14-Feb-13 6:02am
View
I updated my code. Hope it will help.
ellisbay
9-Nov-12 3:22am
View
What I have done so far. I add dateTimePicker on my form..
Made query something like "jlopez788" suggested. And it works well. But the final touch have to be done. I have to show in my grid people who should/ can give blood that month.
So, to do that, I have one function which will calculate when is the time for next donation (Male blood donor can give blood each 3 months, female blood donors each 4 months).
Here is that function:
public static DateTime get_Schedule(string Gender, DateTime date)
{
DateTime dt;
if (Convert.ToString(Gender) == "Female")
{
dt = date.AddMonths(4);
}
else
{
dt = date.AddMonths(3);
}
return dt;
}
But here is a problem. How can I compare this function to dt.Month value?!
ellisbay
9-Nov-12 2:10am
View
This doesn`t work. Any suggestions, anyone?
ellisbay
8-Nov-12 9:14am
View
Not sure. What you suggest to put in combobox? List of month numbers (1-12) or list of month strings (January...December)?
And also this thing: For example, if is DateOfDonation 10.07.2012. for DonorID 10,he should be shown in grid when someone select November in combobox (Donor can give blood every 4 months).
ellisbay
13-Oct-12 7:23am
View
Works like a charm! Thank you very, very much. So simple and elegant, was doing something like this, but inside this function, so didn`t work as well. This is great!
ellisbay
12-Oct-12 5:58am
View
No, no, of course not. I`m aware that`s not possible :) I just want to display in datagridview this information. I`d like to have output, for example, lik|e this:
NAME ADDRESS TELEPH APPOINT. NEXT APP
John Doe | Street no 23 | 344/333 | 10/7/12 | 10/10/12
Jane Doe | Street no 23 | 344/333 | 10/7/12 | 10/11/12
ellisbay
29-Jun-12 3:34am
View
Works only with one textbox :/
I really don`t know where is a problem.
ellisbay
28-Jun-12 13:12pm
View
That was mistake while I was writing.. sadly, that`s not the problem..
ellisbay
7-Feb-12 7:26am
View
Problem is that I don`t have a where clause in my query...
I`m showing all products in that listview.
ellisbay
31-Jan-12 9:46am
View
Not working.. in query "a" if I select SingleOrDefault() foreach loop doesn`t work.
And If I don`t select SingleOrDefault(), I have to write myOrder.ShoppingCartFK=item.id;
In second case it builds, but when I click on button show error on "dc.SubmitChanges()".
Another idea?
ellisbay
25-Jan-12 7:59am
View
THANK YOU very, very, very much!!! :)))
It works like charm.. :)
Followed your steps, and in row_command function just wrote this:
if (e.CommandName == "EDI")
{
int id = int.Parse(gv_korpa.Rows[0].Cells[0].Text);
AddItem(id);
gv_korpa.DataBind();
}
Thank you again!
ellisbay
25-Jan-12 4:28am
View
You mean like this?
protected void gv_korpa_RowUpdating(object sender, GridViewUpdateEventArgs e)
{
int Id = int.Parse(gv_korpa.Rows[e.RowIndex].Cells[0].Text); //id cell
int product = int.Parse(gv_korpa.Rows[e.RowIndex].Cells[6].Text);// quantity cell
AddItem(Id, product);
gv_korpa.DataSource = KorpaController.prikaziKorpu(Session["PrijavljeniKorisnik"].ToString());
gv_korpa.DataBind();
}
?
Now working :(
Show More