16,011,868 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 .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 Brinda Arumugam (Top 16 by date)
Brinda Arumugam
17-Sep-15 3:14am
View
Superb :) thank you its working....
Brinda Arumugam
26-Jul-14 3:55am
View
Date come from datagridview cell
this s my code
<pre lang="c#">
if (e.ColumnIndex == 1)
{
if (dataGridView1.Rows[e.RowIndex].Cells[e.ColumnIndex].Value == DBNull.Value || dataGridView1.Rows[e.RowIndex].Cells[e.ColumnIndex].FormattedValue.Equals(""))
{ }
else
{
String cleanedString = System.Text.RegularExpressions.Regex.Replace(dataGridView1.Rows[e.RowIndex].Cells[e.ColumnIndex].Value.ToString(), @"\s+", " ");
dataGridView1.Rows[e.RowIndex].Cells[e.ColumnIndex].Value = cleanedString.Trim();
if (T.DateValidation(dataGridView1.Rows[e.RowIndex].Cells[e.ColumnIndex].Value.ToString()) == false)
{
MessageBox.Show("Invalid Date Format!", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
dataGridView1.Rows[e.RowIndex].Cells[e.ColumnIndex].Value = "";
}
}
}
</pre>
When i get date from datagridview cell that time only this error occur...
Brinda Arumugam
26-Jul-14 2:50am
View
thanks for reply ...
but i want to validate date in datagridview cell.so we should tell to client whats the format or any other solution for datagridview datetime cell ?
Brinda Arumugam
3-Apr-14 3:56am
View
tnks for fast reply... i got solutions
Brinda Arumugam
3-Apr-14 0:44am
View
checked connection string .its rite. and checked also query its executed and returned data...
this s my coding
DataSet dd = null;
dd = getdatasetfromquery("SELECT DISTINCT P.PNo, P.PDate, P.PM, P.DisAmt, P.NT,P.LT,P.EID,C.EName FROM PurchaseDetails AS P INNER JOIN CustomerDetails AS C ON P.EID = C.EID");
Report_PurchaseAll_View report1 = new Report_PurchaseAll_View();
ConnectionInfo crConnectionInfo;
Tables crTables;
TableLogOnInfo crTableLogOnInfo;
crTables = report1.Database.Tables;
crConnectionInfo = new ConnectionInfo();
crConnectionInfo.ServerName = ValidationT_SQLC.Path;
crConnectionInfo.DatabaseName = ValidationT_SQLC.Name;
foreach (CrystalDecisions.CrystalReports.Engine.Table aTable in crTables)
{
crTableLogOnInfo = aTable.LogOnInfo;
crTableLogOnInfo.ConnectionInfo = crConnectionInfo;
aTable.ApplyLogOnInfo(crTableLogOnInfo);
}
report1.SetDataSource(dd.Tables[0]);
crystalReportViewer1.ReportSource = report1;
crystalReportViewer1.Refresh();
public DataSet getdatasetfromquery(string query)
{
DataSet ds = new DataSet();
cmd = con.CreateCommand();
cmd.CommandText = query.ToString();
cmd.CommandType = CommandType.Text;
da = new SqlCeDataAdapter(cmd);
da.Fill(ds);
return ds;
}
Brinda Arumugam
18-Feb-14 2:17am
View
Tnks for reply :)
already I tried following Code:
SqlCeConnection con = new SqlCeConnection("Data Source=" + AppDomain.CurrentDomain.BaseDirectory + "\\New\\GSM.sdf;" + "Mode = Read Write"); but its also not working..
can u give some c# example coding for this....
Brinda Arumugam
23-Nov-13 3:58am
View
Deleted
OleDbCommand cmd1 = null; OleDbCommand cmd11 = null;
namesCollection1.Clear();
cmd1 = new OleDbCommand("select * from InvoiceDetails", Con);
OleDbDataReader dr1 = cmd1.ExecuteReader();
while (dr1.Read())
{
if (!namesCollection1.Contains(dr1[4].ToString()))
{
namesCollection1.Add(dr1[4].ToString());
}
}
cmd1.Dispose();
dr1.Dispose();
cmd11 = new OleDbCommand("select * from CustomerDetails", Con);
OleDbDataReader dr11 = cmd11.ExecuteReader();
while (dr11.Read())
{
if (!namesCollection1.Contains(dr11[11].ToString()))
{
namesCollection1.Add(dr11[11].ToString());
}
}
cmd11.Dispose();
dr11.Dispose();
PhoneNoText.AutoCompleteMode = AutoCompleteMode.SuggestAppend;
PhoneNoText.AutoCompleteSource = AutoCompleteSource.CustomSource;
PhoneNoText.AutoCompleteCustomSource = namesCollection1;
Brinda Arumugam
23-Nov-13 3:57am
View
Deleted
OleDbCommand cmd1 = null; OleDbCommand cmd11 = null;
namesCollection1.Clear();
cmd1 = new OleDbCommand("select * from InvoiceDetails", Con);
OleDbDataReader dr1 = cmd1.ExecuteReader();
while (dr1.Read())
{
if (!namesCollection1.Contains(dr1[4].ToString()))
{
namesCollection1.Add(dr1[4].ToString());
}
}
cmd1.Dispose();
dr1.Dispose();
cmd11 = new OleDbCommand("select * from CustomerDetails", Con);
OleDbDataReader dr11 = cmd11.ExecuteReader();
while (dr11.Read())
{
if (!namesCollection1.Contains(dr11[11].ToString()))
{
namesCollection1.Add(dr11[11].ToString());
}
}
cmd11.Dispose();
dr11.Dispose();
PhoneNoText.AutoCompleteMode = AutoCompleteMode.SuggestAppend;
PhoneNoText.AutoCompleteSource = AutoCompleteSource.CustomSource;
PhoneNoText.AutoCompleteCustomSource = namesCollection1;
Brinda Arumugam
4-Oct-13 5:31am
View
Thanks :) Its Working .. i got in toolbox without did 2nd option
Brinda Arumugam
5-Jun-13 5:51am
View
Sir its Windows Application only :)
Brinda Arumugam
5-Jun-13 0:21am
View
thnks for reply .. i'm using windows application
Brinda Arumugam
29-Apr-13 8:24am
View
its working thanks
Brinda Arumugam
23-Jan-13 6:07am
View
thanks for ur coding ....... its working :)
Brinda Arumugam
22-Jan-13 23:30pm
View
thanks for ur coding kishor deshpande :)
in that coding
Application.OpenForms.Item - Not available
[i'm using c#3.5 version]
can u plz help me
Brinda Arumugam
22-Jan-13 4:35am
View
THANKS FOR UR CODING :)
I GOT ANSWER BUT THAT COUNT WITH HIDDEN FORMS ALSO. BUT I NEED ONLY ACTIVE FORMS COUNT.
CAN U PLZ TELL ME FOR THIS PROB.
Brinda Arumugam
18-Aug-12 4:55am
View
i want datagridview output like this
1 2 3 4 5 6 7 - first row
8 9 10 11 12 13 14 - second row
each and every cell is button columns
can u plz help me
Show More