15,902,635 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 yogeshkansete (Top 17 by date)
yogeshkansete
27-Dec-13 7:17am
View
Deleted
this.reportViewer1.LocalReport.Refresh();
this.reportViewer1.ProcessingMode = Microsoft.Reporting.WinForms.ProcessingMode.Local;
this.reportViewer1.LocalReport.ReportPath = "~//Report//SlipPrinting.rdlc";
//this.reportViewer1.LocalReport.DataSources.Add(new ReportDataSource("dsSlipPrinting",dsnew.Tables[0]));
ReportDataSource rds = new ReportDataSource("dsSlipPrinting", dt);
reportViewer1.LocalReport.DataSources.Add(rds);
reportViewer1.DataBindings.ToString();
yogeshkansete
23-Dec-13 1:11am
View
yes i checked, it is same.can you provide me some code.
yogeshkansete
23-Oct-13 3:10am
View
helloo...any solution for this question??
I tried this code,it removes the row which i selected but gives exception while inserting row.
Error: "Programmatically you can't insert row while the control is databind "
private void btnUp_Click(object sender, EventArgs e)
{
DataGridView grid = gridTasks;
try
{
int totalRows = grid.Rows.Count;
int idx = grid.SelectedCells[0].OwningRow.Index;
if (idx == 0)
return;
int col = grid.SelectedCells[0].OwningColumn.Index;
DataGridViewRowCollection rows = grid.Rows;
DataGridViewRow row = rows[idx];
rows.Remove(row);
rows.Insert(idx - 1, row); // getting exception here
grid.ClearSelection();
grid.Rows[idx - 1].Cells[col].Selected = true;
}
catch { }
}
yogeshkansete
21-Oct-13 0:58am
View
Actually this client have the cable network business so he need to print bill every month.And he want to print bill as location wise but after that he don't need again to sort out the bill.
ex.
suppose when i give print for the location 1 and i get the print as in serial no like custno 1,2,3,4..
but my customer no 3 is neighbor of customer no 1 so i need to print in 1,3,2,4..
for that reason i want to give him some sort out option in gridview because of that he can arrange customer as his own way
yogeshkansete
16-Oct-13 6:31am
View
Thank you
yogeshkansete
16-Aug-13 2:17am
View
Yes it resolve but now my question is that after publishing my application, why this RDLC files are getting invisible because of that again i need to copy it
yogeshkansete
14-Aug-13 8:31am
View
Just i have seen after publishing my application, SalarySlip.rdlc files gets off from the folder so i put the SalarySlip.rdlc in that folder and it shows report.
yogeshkansete
14-Aug-13 8:00am
View
yes i already used
ReportViewer1.LocalReport.ReportPath = Server.MapPath("SalarySlip.rdlc");
yogeshkansete
14-Aug-13 7:58am
View
But it works when run it on local and may be RDLC doesnt need any kind of license.
yogeshkansete
13-Aug-13 3:53am
View
thank you it works
yogeshkansete
10-Aug-13 5:39am
View
company offer loan for only two years but in case i want it for 36 month that time this code creates problem
yogeshkansete
10-Aug-13 4:44am
View
yes i tried one solution but it is only for loan tenure less than 2 yr
if (txtYears.Text != "" && txtLoanAmount.Text != "" && txtLoanPercent.Text != "")
{
DataTable dt = new DataTable();
dt.Columns.Add(new DataColumn("tranMonthNo", typeof(string)));
dt.Columns.Add(new DataColumn("tranMonthName", typeof(string)));
dt.Columns.Add(new DataColumn("tranYear", typeof(string)));
dt.Columns.Add(new DataColumn("EMIperMonth", typeof(string)));
if (Convert.ToInt32(txtYears.Text) > 0)
{
string mnth = "";
string mnthno = "";
string year = "";
int b = Convert.ToInt32(lblmonthno.Value) + Convert.ToInt32(txtYears.Text); // txtYears.Text = period of month
for (int i = Convert.ToInt32(lblmonthno.Value); i < b; i++)
{
if (i <= 12)
{
if (i == 1)
{
mnth = "January";
mnthno = "1";
}
else
if (i == 2)
{
mnth = "February";
mnthno = "2";
}
else
if (i == 3)
{
mnth = "March";
mnthno = "3";
}
else
if (i == 4)
{
mnth = "April";
mnthno = "4";
}
else
if (i == 5)
{
mnth = "May";
mnthno = "5";
}
else
if (i == 6)
{
mnth = "June";
mnthno = "6";
}
else
if (i == 7)
{
mnth = "July";
mnthno = "7";
}
else
if (i == 8)
{
mnth = "August";
mnthno = "8";
}
else
if (i == 9)
yogeshkansete
25-Jun-13 6:10am
View
actually this button is placed in gridview and i fired the RowCommand event so it is not posiible to write on page load event.
My rowcommand code is like this:
protected void grdEmpwiseAtt_RowCommand(object sender, GridViewCommandEventArgs e)
{
// this event fire to find index of selected row
if (e.CommandName.Equals("Details"))
{
DataSet ds = (DataSet)Session["ShiftStatus"];
string emp_IN = "";
string emp_OUT = "";
string Shift_StartClockInTime = "";
string Shift_EndClockInTime = "";
string Shift_StartClockOutTime = "";
string Shift_EndClockOutTime = "";
string ShiftFlag = "";
int index = Convert.ToInt32(e.CommandArgument); //get index of selected row
GridViewRow grd = grdEmpwiseAtt.Rows[index];
string empId = grd.Cells[0].Text.ToString();
Label lbl = (Label)grd.Cells[3].FindControl("lblShiftCode");
string ShiftCode = lbl.Text;
DataSet dsgetshifttimerange = obj_com.GetOneRecord("PAY_ShiftMaster", "CompCode='" + lblcompany.Text.Trim() + "' and ShiftCode='" + ShiftCode.ToString() + "' and Month='" + lblmonthno.Value.ToString() + "' and Year='" + lblYear.Text.Trim() + "'");
if (dsgetshifttimerange.Tables[0].Rows.Count > 0)
{
for (int i = 0; i < dsgetshifttimerange.Tables[0].Rows.Count; i++)
{
DateTime Shift_StartClockIn = Convert.ToDateTime(dsgetshifttimerange.Tables[0].Rows[i][6].ToString());
DateTime Shift_EndClockIn = Convert.ToDateTime(dsgetshifttimerange.Tables[0].Rows[i][7].ToString());
DateTime Shift_StartClockOut = Convert.ToDateTime(dsgetshifttimerange.Tables[0].Rows[i][9].ToString());
DateTime Shift_EndClockOut = Convert.ToDateTime(dsgetshifttimerange.Tables[0].Rows[i][10].ToString());
ShiftFlag = dsgetshifttimerange.Tables[0].Rows[i][3].ToString();
Shift_StartClockInTime = Shift_StartClockIn.ToShortTimeString(); //clockin_start_Time
Shift_EndClockInTime = Shift_EndClockIn.ToShortTimeString(); //clockin_end_Time
Shift_StartClockOutTime = Shift_StartClockOut.ToShortTimeString();//clockout_Start_Time
Shift_EndClockOutTime = Shift_EndClockOut.ToShortTimeString(); //clockout_End_Time
}
}
else
{
}
string Date = grd.Cells[2].Text.ToString();
string dd = Date.Substring(0, 2);
string mm = Date.Substring(3, 2);
string year = Date.Substring(6, 4);
DateTime date = Convert.ToDateTime(mm + "/" + dd + "/" + year);
//DateTime date = Convert.ToDateTime(Date);
string[] dtOfINT = grd.Cells[5].Text.ToString().Split(' ');
string[] dtofOUT = grd.Cells[6].Text.ToString().Split(' ');
DateTime InTime = Convert.ToDateTime(dtOfINT[0] + " " + Shift_StartClockInTime.ToString());
DateTime OutTime = Convert.ToDateTime(dtofOUT[0] + " " + Shift_EndClockOutTime.ToString());
string inFlag = ShiftFlag.Substring(0, 1);
string outFlag = ShiftFlag.Substring(1, 1);
//get log details
DataSet dsGetDetailsLog = obj_com.DetailsLog(lblcompany.Text.Trim(), empId.ToString(), lblmonthno.Value.ToString(), lblYear.Text.Trim(), date, InTime, OutTime, inFlag.ToString(), outFlag.ToString());
if (dsGetDetailsLog.Tables[0].Rows.Count > 0)
{
Session["GetDetailsLog"] = dsGetDetailsLog.Tables[0];
P
yogeshkansete
25-Jun-13 5:25am
View
If it is opened at back then how to show it on front.
But when i press button twice it has to open in centre
yogeshkansete
25-Jun-13 5:09am
View
I wrote this code to open popup
<script type="text/javascript" language="javascript">
function OpenChild(param) {
var value = param;
//var WinSettings = "center:yes;resizable:no;dialogHeight:200px;dialogWidth:200px"
//ALTER BELOW LINE - supply correct URL for Child Form
var MyArgs = window.showModalDialog('../Pages/Popupwindow.aspx?param=' + value);
}
</script>
yogeshkansete
24-Jun-13 4:12am
View
Thank you so much sir, it works well on IIS too.
I use split function.
Thanks once again
yogeshkansete
24-Jun-13 3:46am
View
Is there any solution without using substring
Show More