15,890,973 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 Javascript questions
View Visual Basic questions
View Python 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 karthik reddy mereddy (Top 9 by date)
karthik reddy mereddy
24-Sep-13 6:36am
View
it is a datagridview, even though there is no data in the datagridview, we can select the cells.
karthik reddy mereddy
19-Sep-13 6:15am
View
Was it the same you are referring to:?
private void btnInsert_Click(object sender, EventArgs e)
{
if (txtName.Text == string.Empty)
{
MessageBox.Show("Please enter a value to Project Name!");
txtName.Focus();
return;
}
if (txtContactPerson.Text == string.Empty)
{
MessageBox.Show("Please enter a value to Description!");
txtContactPerson.Focus();
return;
}
SqlConnection con = Helper.getconnection();
con.Open();
try
{
string commandText = "InsertClient";
SqlCommand cmd = new SqlCommand(commandText, con);
cmd.Parameters.AddWithValue("@Name", txtName.Text);
cmd.Parameters.AddWithValue("@ContactPerson", txtContactPerson.Text);
cmd.CommandType = CommandType.StoredProcedure;
MessageBox.Show("Client details are inserted successfully");
txtName.Clear();
txtContactPerson.Clear();
object Name = cmd.ExecuteNonQuery();
BindData();
}
catch (Exception ex)
{
MessageBox.Show(ex.Message);
}
finally
{
con.Close();
}
}
karthik reddy mereddy
12-Sep-13 2:26am
View
Actually, by using "blank space i the string" it is taking that space as value and displaying as null, but actually it is not becoming Null.
karthik reddy mereddy
12-Sep-13 2:25am
View
If we use dateTimePicker1.CustomFormat = " "; the control is becoming null and on submitting it is taking the default value. My requirement is it should give a error message and should not accept the Null value.
karthik reddy mereddy
11-Sep-13 6:36am
View
I am sorry for the typo, I am using if (dateInsert.Value.ToString() == string.Empty).
When the page is loading it is coming with the todays date in datetimepicker control. What requieremnt is, I should definitely click or change the date to previous on the datetimepicker control in order to submit.
karthik reddy mereddy
5-Sep-13 5:12am
View
If I select the datagridview cell, it should show the data in the textbox, for the first two times it is okay, but I select the datagridviewcell for the third time then it is not showing the data in the textbox.
karthik reddy mereddy
4-Sep-13 5:09am
View
Thank you, I did the same, It worked.
karthik reddy mereddy
4-Sep-13 5:07am
View
Thank you, it worked.
I have Set the List View's property Visible = Falsein the properity window.
Within the button click event handler set it to true;
listView1.Visible = true;
karthik reddy mereddy
27-Aug-13 8:27am
View
Thank you, I am able to retrieve the index and the store the same in the database, here the problem I have is I want to assign the text( value of the combo box before insering,, i.e active or in active or working) to that selected integer. If I select 0 from combo box, then it should show as Active in the list view, 1 as In active and 2 as working.
Show More