csharpnoob
Member
- Joined
- Dec 22, 2022
- Messages
- 11
- Programming Experience
- Beginner
hello so i want to get RepositoryItemLookUpEdit display text
here it save the value in database
so iwant to get the display text and save the store name not id
here is my code :
here it save the value in database
so iwant to get the display text and save the store name not id
here is my code :
C#:
RepositoryItemLookUpEdit lookup = new RepositoryItemLookUpEdit();
lookup.ValueMember = nameof(store.StoreID);
lookup.DisplayMember = nameof(store.StoreName);
/////////////////////////////////
var data = gridView1.DataSource as BindingList<DAL.Products_qty>;
foreach(var item in data)
{
item.Pro_Id = product.Pro_ID;
///item.Store_Name = ???????????????????????????????? ;
item.Sell_PriceTax = Convert.ToDecimal(Txt_SalePRiceTax.Text);
}
genDB.SubmitChanges();