Click here to Skip to main content
15,889,176 members

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