Hi ,
i am trying to implement copy & paste feature from one form to another form.
My first gridview is not databound to any thing,,,,its a gridview with 4 columns in which 2 are read only and in other 2, user should provide input.
Gridview 1: ( this is grid is form1)
productid, productname,qty,price.
Here productid and productname column is readonly. and once i paste productid and productname then user should provide qty and price for the products in respective way.
Now in Gridview 2:(this grid is form2)
productid,productname.
in gridview2, i am binding the data with help of dataset.
Now once i copy the selected rows from gridview into a list<> in form 2 (here list<> is one class type which i have defined below)
Then i want to bind that list<> in grdview1 in form1 with respective columns of gridview.
Can you please help me..
Thanks...
public class Datagridvievalue
{
public Datagridvievalue()
{ ;}
private string _id;
public string _productId
{
get { return _id; }
set { _id = value; }
}
private string _pName;
public string _productName
{
get { return _pName; }
set { _pName = value; }
}
public Datagridvievalue(string id, string name)
{
this._id = id;
this._pName = name;
}
}
Please help me...
Thanks....