Click here to Skip to main content
16,020,626 members

Comments by ost3z (Top 31 by date)

ost3z 18-Jun-15 19:34pm View    
your answer is logic what is the best solution for that problem ?
ost3z 18-Jun-15 18:54pm View    
thanks for reply my database folder is under bin folder i really debug my project many time every thing in this form works exactly as i need when i close that form every data lost in this only table not other despite there is no code on close thanks again for u
ost3z 16-Jun-15 8:22am View    
it doesn't work in ms access
ost3z 29-May-15 7:20am View    
Deleted
this my my code
if (dataGridView1.Rows[e.RowIndex].Cells[1].Value != null)
{
string cellValue = dataGridView1.Rows[e.RowIndex].Cells[1].Value.ToString();
if (!string.IsNullOrEmpty(cellValue))
{
_bar = cellValue;
PopulateColumns();
dataGridView1.Rows[e.RowIndex].Cells[2].Value = _proname;
dataGridView1.Rows[e.RowIndex].Cells[3].Value = _price;
dataGridView1.Rows[e.RowIndex].Cells[4].Value = _unit;
}
}

i use PopulateColumns(); to access data from data table and pass it to the grid view where it equal dataGridView1.Rows[e.RowIndex].Cells[1].Value . when i use break-point it works correct if i stop break point it repeat the same data in each row despite the value of dataGridView1.Rows[e.RowIndex].Cells[1].Value is not the same ?
ost3z 25-May-15 17:27pm View    
Deleted
thanks all it works with fine i only edit this little code

// CrystalReportSells.ReportSource = cr;
CrystalReportVieweradv crystalReportVieweradv = new CrystalReportVieweradv();
crystalReportVieweradv.crystalReportViewer1.ReportSource = cr;
crystalReportVieweradv.Show();

now it works fine . how can also pass textbox value to the crystl report beside xml file as datasource for the report