Want to build the ChatGPT based Apps? Start here
Become a member
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
C# Corner Home
Technologies
Monthly Leaders
ASK A QUESTION
Forum guidelines
Emmmanuel FIADUFE
1.9k
264
5.6k
string was not recognized as a valid dateTime.
Apr 18 2021 6:01 AM
am using dateTimePicker in dataGridView and SQL database
private
void
dataGridView1_CellContentClick(
object
sender, DataGridViewCellEventArgs e)
{
try
{
string
ColName = dataGridView1.Columns[e.ColumnIndex].Name;
if
(ColName ==
"ColEdit"
)
{
formExecutiveInfoEntry frm =
new
frmExecutiveInfoEntry(
this
);
form.dtDateJoin.Text = dataGridView1.Columns[1].DefaultCellStyle.Format =
"dd-MM-yyyy"
;
}
}
}
Reply
Answers (
13
)
why does the program not stop?
Windows Forms in C#