Al Salaam Alykom wa Rahmato Allah wa Barakto
Sorry i don't have Arabic keyboard so i'll try to mix arabic with English
I study c# so i have to do 2 classes the first is Invoice,and the 2nd is Invoice detail;so i have to make 2 windows form in c#;and in the 1st windows i have to put DataGridView and then bind the data from the 1class.
But my problem is when You click op any foeld of record in the data grid(Form1 for example) you should go to the details of the invoice in the 2nd form2?
ill show u my 1 class whic is invoice (or factuur in Dutch language)
class factuur
{
private int _factuurnummer;
private string _datum;
private double _totaalbedrag;
private ArrayList _factuurLijnen;
// constructor
public factuur()
{
_factuurnummer = 1;
_datum = null;
_totaalbedrag = 0;
_factuurLijnen = null;
}
// second Constructor
public factuur(int _factuurnummer,string _datum,double _totaalbedrag,ArrayList _factuurLijnen)
{
this._factuurnummer=_factuurnummer;
this._datum=_datum;
this._totaalbedrag=_totaalbedrag;
this._factuurLijnen=_factuurLijnen;
}Hona sawf aktoB alkood how to bind the datasource to the Datagrid
private void Form1_Load(object sender, EventArgs e)
{
DataTable fadi_Awad = new DataTable();
fadi_Awad.Columns.Add("factuurNummer");
fadi_Awad.Columns.Add("Datum");
fadi_Awad.Columns.Add("Totaal");
fadi_Awad.Columns.Add("FactuurLijn");
dataGridView1.DataSource = fadi_Awad;
}But my Main problem is when i don't know what i must do when i click on one cell of the data then can see the details in another form
Shokran keteer