15,896,528 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 Pawan Kiran (Top 94 by date)
Pawan Kiran
7-Jul-20 7:35am
View
It has a column on the database table and i was able to read the values (I had added a new column with default bit flag as 1, so all my existing records are updated with 1)
Now when I try to edit the record from the frontend it throws me the error as explained on the question.
Pawan Kiran
30-Mar-12 16:44pm
View
@SAKryukov: Thank u for your suggestion & Background app worked for my solution.
Pawan Kiran
30-Mar-12 15:44pm
View
@Heinzzy, Thnak u very much for your thought to implement background app, i was able to work around my issue. need to check it satisfies all my requirements.
Pawan Kiran
30-Mar-12 14:40pm
View
Deleted
can u please let me more on background app, n how it would be useful to my problem?
Pawan Kiran
30-Mar-12 14:38pm
View
in my case, an service start will call an exe and let the user know his status and more over it was already developed version in Windows Xp, and my team want to change this to Windows 7 as per my Manager Requirement..
Pawan Kiran
2-Aug-11 13:38pm
View
please find the sample image in the below url http://www.screencast.com/t/TnapOsNOr
and i don't know the exact size and also position may vary some times.
Pawan Kiran
2-Aug-11 12:21pm
View
yes, i need to erase automatically and the background in not much complex.
let me know further on this please..
Pawan Kiran
18-Jul-11 13:43pm
View
Dear SA,
Thanks to your reply. what i need is, i want to draw a Horizontal Line at the top of my Chart(Means the Y-axis interval values are not static). so, i am unable to fix or get the max of Y-Axis Value..
If u have any answer, please let me know.
Pawan Kiran
6-Apr-11 3:35am
View
Vote of 5 and Thank U.
Pawan Kiran
2-Mar-11 23:41pm
View
Already gave 5 to Mr.Olivier...
Pawan Kiran
2-Mar-11 12:01pm
View
vote of 5..
solves my issue.. thank u very much..
Pawan Kiran
2-Mar-11 9:53am
View
it doesn't help me to overcome my issue..
Pawan Kiran
31-Jan-11 23:09pm
View
Project->Add new item->Dataset.xsd
try to assign Connectionstring in TableAdapterConfigurationWizard by clicking on NewConnection Button.
i am able to get data, by using Stored proc's Or inline statements (Which returns Dataset or Datatable).
Pawan Kiran
19-Jan-11 4:47am
View
your link did't help me.
I used Expand/Collapse images inside the GridView so it gives an exception..
The link which u given to me will work fine, if the Grid doesn't have any Images, Images are used to Expand and Collapse the Child Grid..
So i tried by Literal Control..
Some sample code..
private string FillLiteral()
{
DataTable dtMain = new DataTable();
dtMain = BusinessLayer.GetAddCartItems(SessionManager.Current.CartID); //SessionManager.Current.CartID
DataTable dtChild = new DataTable();
dtChild= BusinessLayer.GetAllAddCartAccessories();
string htext = "";
htext += " <table border='0' width='100%' style='font-family:Arial;'><tr><td colspan=5 align=center style='font-size:14px;font-color:#FF0000'>Report</td><tr><td colspan=4 align:left> Email :" + SessionManager.Current.Email + "</td><td>Date:"+DateTime.Now.Date.ToString("d") +"</td></tr> </table> <br />";
htext += " <table border='1' style=''font-family:Arial;font-size:9pt;'> ";
htext += " <tr><th align=center>DeviceName</th><th align=center>DevicePrice</th><th align=center>PlanName</th><th align=center>PricePlan</th><th align=center>Accessories</th></tr>";
if (dtMain.Rows.Count > 0)
{
foreach (DataRow dr in dtMain.Rows)
{
htext += "<tr>";
htext += "<td align=center>" + dr["devname"] + "</td>";
htext += "<td align=center>" + dr["devprice"] + "</td>";
htext += "<td align=center>" + dr["planname"] + "</td>";
htext += "<td align=center>" + dr["planmoncost"] + "</td>";
htext += "</tr>";
DataRow[] drChild = dtChild.Select("itemid =" + dr["itemid"]);
if (drChild.Count() > 0)
{
htext += "<tr > <td colspan='6'> <table border=1 cellspacing=0 cellpadding=0 style='margin-left:30px;font-weigh:bold;font-family:Arial;font-size:9pt;' width=95% > ";
htext += " <tr bgcolor='#dcdcdc'><th align=center>Name</th><th align=center>Qty</th><th align=center>Price</th></tr>";
foreach (DataRow dritem in drChild)
{
htext += "<tr><td align=center>" + dritem["acsoryname"] + "</td>";
htext += " <td align=center>" + dritem["acsoryqty"] + "</td>";
htext += " <td align=center>" + dritem["acsoryprice"] + "</td>";
htext += "</tr>";
}
}
htext += "</table> </td></tr>";
}
}
htext += "</table>";
return htext;
//Literal1.Text = htext;
// FillEmployeeGrid();
}
By using above method the PDF is generated.
Thank u very much for your posts..
Pawan Kiran
19-Jan-11 4:32am
View
Nice article..
Pawan Kiran
13-Jan-11 6:40am
View
I haven't seen this article yet, now i will check..
Thank u very much.
Pawan Kiran
13-Jan-11 5:24am
View
i already look into this one, before i posted into forum..
i have a problem where my nested grid has expand/collapse images and also want to upload nested grid's into pdf..
If it is single grid UR Posted Link will be fine (in case Grid Doesn't have Images)
Pawan Kiran
5-Jan-11 4:31am
View
Thank u very much Mr.Deepak
it solves my problem..
Pawan Kiran
29-Nov-10 23:15pm
View
Thank u Mr.Rahul, i have to check your comment.
Pawan Kiran
26-Nov-10 23:03pm
View
I am using MYSQL as BackEnd.
could u provide some brief about ur answer.
Pawan Kiran
17-Nov-10 5:15am
View
Mr.Fredrik Nice Answer.
Pawan Kiran
3-Nov-10 8:03am
View
if u Tested my Answer, Leave some comment.
Pawan Kiran
3-Nov-10 6:56am
View
Don't mine for Deleted the Comment, Accidentally it happend.
Pawan Kiran
3-Nov-10 6:52am
View
Deleted
Good answer.
Pawan Kiran
2-Nov-10 7:23am
View
Thanku Mr.Hiren.
Pawan Kiran
1-Nov-10 8:09am
View
Take a look at my updated Answer.
Pawan Kiran
1-Nov-10 5:49am
View
Enter any Value in the Cell, and put Debugger in Cell_ValueChanged Event.
and Trace out the Value in Immediate Window(Ctrl+Alt+I)..
Value you are Getting With $ or Without $. and Do According to the Value you are Getting.
Pawan Kiran
28-Oct-10 1:43am
View
Hi JF, Good Call.
Pawan Kiran
27-Oct-10 10:01am
View
Create a Form and Send the Designer.cs and .cs Code
Pawan Kiran
27-Oct-10 9:58am
View
your explanation is very clean and neat.
Pawan Kiran
26-Oct-10 7:32am
View
Dear Sandeep, have a look at my C# code. let me know the Comment Regarding my post.
Pawan Kiran
25-Oct-10 0:02am
View
I haven't Find the Solution Perfectly.
can some body help me on this please.
Pawan Kiran
23-Oct-10 5:29am
View
Try By Changing UserList.SelectedItem near "Select Condition"
Or
add this line in your code
this.UserList.ValueMember="name";
Pawan Kiran
23-Oct-10 5:00am
View
How you are going to Calculate CommonPrice Cells in DataGridView?
Means something like u are providing any Control To Calculate All Values!
Pawan Kiran
22-Oct-10 7:33am
View
let us know where u did the mistake?
Pawan Kiran
22-Oct-10 7:24am
View
Hi Anurag, This kind of situation mostly occurs, while passing string size is more than DB Column size.. what i suggests her is, First Increase the column Size and Test it by giving Old Values only.
and i have found One more Link, it may be useful or not I am not aware.
http://blogs.msdn.com/b/buckh/archive/2005/10/12/480057.aspx
Pawan Kiran
22-Oct-10 6:23am
View
sorry Aarti, same i have tried at my side by creating DB and Form..
everything ok for me. i tested by taking combo values as well as static values also.
Pawan Kiran
21-Oct-10 9:04am
View
I run the app by setting FlatStyle and FlatAppearence also..
it doesn't look good.
if u don't mine just create a Form with 2 Buttons, Set Form1 AcceptButton as Button1 and CancelButton as Button2.
Apply FlatStyle to Button2.
Check Button1 and Button2 MouseHover in Runtime.
Do let me know your reply.
Finally,Thanks to you for your Contribution..
Pawan Kiran
21-Oct-10 8:57am
View
No, Only C#.
Pawan Kiran
21-Oct-10 8:40am
View
ya, your words are true.
Pawan Kiran
21-Oct-10 8:36am
View
Hi Kiran,
I tried ur image option, but still the Gold color is appearing for Button Border. This Gold Color i haven't mentioned or coded any where.
Pawan Kiran
21-Oct-10 8:18am
View
nice one.
i think we can use this also
select @Count=Max(Column1) From Table1
Pawan Kiran
21-Oct-10 7:35am
View
Atleast,u just try to pass Static Data to Each parameter and Run.
Let me know Record is inserted or not.
Pawan Kiran
20-Oct-10 0:21am
View
Hi,
Thanks to your post, Could u provide me a link or any sample document related to Uninstall process in a more Descriptive way..
i am very thankful to you.. if i get solution to my post.
Pawan Kiran
19-Oct-10 6:02am
View
Hi Thanks to your post, i got the solution for my question..
Pawan Kiran
19-Oct-10 5:24am
View
In Form_Load only it is Working..
suppose if u Leftclick on a Row and Leave All Rows in Datagridview and RightClick in other Area Of Datagridview, Contextmenustrip is appearing. but purpose is, it should not show the Contextmenustrip.
if u have more ideas on this.. please let me know.
Pawan Kiran
15-Oct-10 8:50am
View
Hi Thanks to your post,
i considered CellLeaving also,
so I have used CellBeginEdit,CellEndEdit Events to solve my problem
But an Exception Prevents me to Solve my issue.
here is my code:
int originalvalue = 0;
private void dgridSLFElement_CellBeginEdit(object sender, DataGridViewCellCancelEventArgs e)
{
try
{
if (dgridSLFElement.Columns[dgridSLFElement.CurrentCell.ColumnIndex].Name.Equals("No of Clusters"))
{
originalvalue = string.IsNullOrEmpty(dgridSLFElement.CurrentCell.Value.ToString()) ? 0 : Convert.ToInt32(dgridSLFElement.CurrentCell.Value);
}
else
{
original_value = this.dgridSLFElement.CurrentCell.Value.ToString();
}
}
catch (Exception ex)
{
DataClass.LogError(ex);
}
}
private void dgridSLFElement_CellEndEdit(object sender, DataGridViewCellEventArgs e)
{
try
{
if (dgridSLFElement.Columns[dgridSLFElement.CurrentCell.ColumnIndex].Name.Equals("No of Clusters"))
{
if (this.dgridSLFElement.CurrentCell.Value.ToString() == originalvalue.ToString())
{
need_save = false;
}
else
{
need_save = true;
DialogResult dr = MessageBox.Show("Want To Update Changes Yes/No", "Alert", MessageBoxButtons.YesNo, MessageBoxIcon.Warning);
if (dr == DialogResult.Yes)
{
saveSLFElement(this.dgridSLFElement.CurrentCell.RowIndex);
}
else
{ dgridSLFElement[this.dgridSLFElement.CurrentCell.ColumnIndex, this.dgridSLFElement.CurrentCell.RowIndex].Value = originalvalue.ToString();
}
}
}
}
catch (Exception ex)
{
DataClass.LogError(ex);
}
}
While Executing Code At this point
saveSLFElement(this.dgridSLFElement.CurrentCell.RowIndex)
i am getting an exception, saying that
Operation is not valid because it results in a reentrant call to the SetCurrentCellAddressCore function.
Above Method Contains a PopupForm, GridViewBindMethod()..
Could you please Rectify my problem..
Thanks in advance.
Pawan.
Pawan Kiran
8-Oct-10 7:07am
View
Before u Vote for an answer, let me know the reason, it would helpful for me to gain better knowledge.
Pawan Kiran
28-Sep-10 8:05am
View
Dear GpuToaster,
still i am getting Visual studio don't send Error message.
private void Uninstall()
{
try
{
string[] arguments = Environment.GetCommandLineArgs();
foreach (string argument in arguments)
{
if (argument.Split('=')[0].ToLower() == "/u")
{
string guid = argument.Split('=')[1];
string path = Environment.GetFolderPath(Environment.SpecialFolder.System);
ProcessStartInfo si = new ProcessStartInfo("cmd.exe", string.Format("/c start /MIN /wait msiexec.exe /x {0} /quiet", guid));
si.WindowStyle = ProcessWindowStyle.Hidden;
Process process=Process.Start(si);
process.WaitForExit();
//Close();
//Application.Exit();
}
}
}
catch (Exception ex)
{
DataClass.LogError(ex);
}
}
Please Let me know if u have an answer.
Pawan Kiran
24-Sep-10 4:55am
View
Deleted
Thanku once again
Pawan Kiran
24-Sep-10 4:52am
View
Thank you so much Mr.Hiren.
A little bit of code change has been done, and it solves My Problem.
Once again Thanks for your efforts.
Pawan Kiran
24-Sep-10 1:26am
View
I am thankful to you for your posts.
Pawan Kiran
24-Sep-10 0:23am
View
Array size is not static, it is generated at runtime only, so i can't hard code it.
Clear Description about my problem:
I have a panel in that i am Adding 9 Combo box Dynamically, in that 5 Combo's Having Same Values and Other 4 combo's Will have (And,Or) Items in it.
i want to make a string which is a combination of
combo[0].Text + combo[5].Text + combo[1].Text + combo[6].Text +
combo[2].Text + combo[7].Text + combo[3].Text + combo[8].Text +
combo[4].Text
For assumption only i said 9 combo box, it vary's at runtime.
Pawan Kiran
24-Sep-10 0:12am
View
Hi Hiren,
The Size of Arr1,Arr2,Arr3 are Same.
Pawan Kiran
23-Sep-10 10:08am
View
if i do like below everything is works fine.
for (int p = 0; p < dtrel.Rows.Count; p++)
{
cb.Items.Add(dtrel.Rows[p]["Relationship"].ToString());
}
//cb.DataSource = dtrel;
//cb.DisplayMember = "Relationship";
//cb.ValueMember = "ID";
but the only thing is ID is not available.
could you plz tell me the Differences between both the above cases(with
Datasource binding, With out Datasource binding).
Pawan Kiran
23-Sep-10 8:12am
View
I will appreciate you for your posts, but i haven't get my task completed yet. as soon as i solve my problem i will vote.
Pawan Kiran
23-Sep-10 6:45am
View
Thanks to your post.
After Creating Array of Combo box also problem is not resolved.
Pawan Kiran
23-Sep-10 5:57am
View
in my method, if i pass 10 as input. it will create 8 Comboboxes..
i want to assign same Datasource to all these 8 Comboboxes,
when i select any value from combobox(C0), The other combos(C1,----,C7) should not change their Text to Combobox(C0) selectedText.
This is what the output i want.
Have any idea do let me know.
Pawan Kiran
23-Sep-10 5:36am
View
I need some more clarity on this. plz provide it.
Pawan Kiran
23-Sep-10 3:07am
View
Thanks to you. It solves my Problem
Pawan Kiran
20-Sep-10 6:41am
View
Dear samqty,
i solved the issue with the help of CellMouseDown event.
Thanks to U.
Pawan Kiran
30-Jul-10 4:52am
View
check f.Show(this) it may help you.
Pawan Kiran
30-Jul-10 0:00am
View
i tried this one,but not solved the issue.
Pawan Kiran
29-Jul-10 23:59pm
View
SelectedIndex is not there for Datagridview control.
Pawan Kiran
26-Jul-10 9:20am
View
Reason for my vote of 4
Thanks to u for providing information.
Pawan Kiran
24-Jul-10 7:18am
View
code is not working at my side. because of columnname problem means there is no columnname for that cell.
Pawan Kiran
24-Jul-10 2:55am
View
Hi Toli cuturicu, answer posted by Wazza9 is true and it is according the question asked by me.
Pawan Kiran
24-Jul-10 2:53am
View
Reason for my vote of 5
Thanks to you for posting answers in both VB,C#.
Pawan Kiran
23-Jul-10 2:52am
View
Reason for my vote of 5
Many many thanks to you. just know tested it in sample application and it works fine.
Pawan Kiran
22-Jul-10 8:51am
View
Links are not suitable to my need, i want an complete behaviour edit,delete sorting,and paging like how an Editable Nested Gridview Works in asp.net
Thanks to you for sharing ur knowledge.
Pawan Kiran
22-Jul-10 8:47am
View
dgridEdit is DataGridView Name.
and
dgridEdit.Rows[1].Cells[0].Value = "1";
is same as your code. but it is not working or binding the value..
Pawan Kiran
22-Jul-10 7:27am
View
Reason for my vote of 5
Great job. Keep it up
Pawan Kiran
22-Jul-10 4:35am
View
I have followed the 2 option. it works fine but events are not working(usercontrol events).
Pawan Kiran
21-Jul-10 9:02am
View
Reason for my vote of 5
Thanks to you it solves my issue.
Pawan Kiran
17-Jul-10 9:50am
View
sincere thanks to you, but i am sure that Datagridview is not accepting MaskedTextbox inside the DataGridview Columns. i can't explain how much time i spent on those. If there is no class of type DataGridViewMaskedTextboxColumn how can i go through with maskedtextbox.
Pawan Kiran
16-Jul-10 2:07am
View
Reason for my vote of 5
i have learned some thing new from your msg.
Pawan Kiran
16-Jul-10 2:04am
View
Reason for my vote of 5
your words are True.
Pawan Kiran
16-Jul-10 1:30am
View
Yes, what ever you said is right but in some cases we are restricted to do the things with limited resources. Now i am in a restricted zone.
Pawan Kiran
15-Jul-10 9:16am
View
Thanks to you.
When i use asp.net Treeview, i will make use of ur code.
Pawan Kiran
15-Jul-10 2:02am
View
Thank u james, i updated the posted question.
Pawan Kiran
15-Jul-10 1:58am
View
Thanks to u and It'is not working according to the sample which i have shown above in my question. ur sample code is accepting continuous 4 digits before or after the dot.The only possible chances are mentioned in my query. No other Format it should accept.
Pawan Kiran
14-Jul-10 9:44am
View
I want to validate a textbox which is inside the gridview.
i tried with maskedtextbox but it is not accepting inside the gridview(means validation is not working)..
That'y i shifted to use textbox
Pawan Kiran
14-Jul-10 0:19am
View
Thank u alot.
Pawan Kiran
12-Jul-10 8:45am
View
Reason for my vote of 5
it solves my issue 90% thank u so much.
Pawan Kiran
12-Jul-10 7:22am
View
Reason for my vote of 4
The link is useful for me to start my work. Thanks to you.
Pawan Kiran
9-Jul-10 2:56am
View
Reason for my vote of 5
Thanxs for your help, i am working on it. hopefully i get the things.justknow i searched registry entry's, everything is fine but some more work to finish it off.
Pawan Kiran
9-Jul-10 0:13am
View
Reason for my vote of 5
it solves my issue
Pawan Kiran
7-Jul-10 8:26am
View
Reason for my vote of 1
can't understand anything from this..
Pawan Kiran
7-Jul-10 6:34am
View
Reason for my vote of 4
firstlink is useful for me to acheive the desired output.but the problem is i can't find the exact location to change the code inorder to get the output which i want. anyhow i wil try to edit it according to my need..
Pawan Kiran
7-Jul-10 6:30am
View
Reason for my vote of 5
after i posted the question i looked into maskededit textbox, it satisfy my need up to maximum extent..
Pawan Kiran
25-Jun-10 4:51am
View
Hi
Thanks for your Reply
I solved myself using FileInfo Class.
i acheived this using FileAttributes.ReadOnly.
Regards,
Pawan.
Pawan Kiran
12-Jun-10 9:06am
View
Hi
I tested the link but it is not useful for me bec of nested gridviews
i want the links with images in both parent and child gridviews.
Any way thanks for your contribution.
Regards,
Pawan.
Pawan Kiran
5-Jun-10 6:17am
View
Thanks to you and i have to try ur link..
Pawan Kiran
24-May-10 23:44pm
View
Hi,
works fine.
Thanks alot
Show More