Click here to Skip to main content
15,898,938 members

Comments by gokhan572 (Top 6 by date)

gokhan572 8-Feb-20 16:34pm View    
Here it is my read database code:

private void rptTeklifTR_AfterPrint(object sender, EventArgs e)
{

NetSatisContext context = new NetSatisContext();
TeklifDAL teklifDAL = new TeklifDAL();


ObjectDataSource teklifDataSource = new ObjectDataSource { DataSource = teklifDAL.GetAll(context) };


PrintingSystem.Document.Name = txtTeklifNo.DataBindings.Add("Text", this.DataSource, "TeklifKodu").ToString();



}
gokhan572 1-Jan-18 4:51am View    
i know it looks an empty list but i have another method for it. So i need only help for this field
nf.txtMyTextBox.Text = string.Join(",", pv.Select(c => c.ProductName.ToString()).ToArray());
When i pass data to textbox in the same form then it works but for another form , it does not.
gokhan572 31-Dec-17 10:09am View    
There are already values in pv. Then i used it in foreach loop. Modifiers state of textbox in new form is already set as public. Pls let me know your solution based on this info. Thanks in advance.
gokhan572 5-Jun-16 7:49am View    
Dear George, I have explained my issue in detail. Could you please check it again?
If anythingelse that is not clear, please let me know.
gokhan572 16-Nov-15 6:57am View    
Dear Mostafa,

Thank you for your quick answer.
I understand the method. Would it be possible to tell me how i can use this method on my user interface for an update button? I tried it out but could not succeed.
Please note that i have a filled datagrid in UI and when i click one of the row, values should appear in the textboxes ready to update.

Thanks in advance.