this is my coding ..i want return the datarow another form .another form coding i was attached ....please tell me ... replay Quickly...
private void grdClientDetails_CellDoubleClick(object sender, FarPoint.Win.Spread.CellClickEventArgs e)
{
//DataTable dt = new DataTable();
//dsClientDetails.Tables.Add(dt);
DataRow[] dr;
dr = dsClientDetails.Tables[0].Select("ACCNUMBER=" + grdClientDetails.ActiveSheet.Cells[e.Row, 1].Text);
return dr;
this.Hide();
}
public DataRow[] dr
{
get
{
return dr;
}
set
{
dr = value;
}
}
another form coding this form only..
frmlookup f1 = new frmlookup("CLIENTDETAILS");
f1.ShowDialog();
for ( int i = 0;i< f1.dr.Length; i++)
{
txtAccNumber.Text= f1.dr[0][0].ToString();
}