-----------------------------------------------------------

New Message on BDOTNET

-----------------------------------------------------------
From: Vaishali
Message 3 in Discussion






Hi,


 


Set the AutoPostBack property of DataGrid to
True.


 


Regards,


Vaishali


 


-----Original Message-----

From: Sujay
[mailto:[EMAIL PROTECTED] 

Sent: Monday, July 07, 2003 4:31
PM

To: BDOTNET

Subject: Refreshing Records in a
DataGrid


 





 
  
  

  
  
  
New
  Message on BDOTNET
  
 
 
  
  

  
 





 


Refreshing Records
in a DataGrid


 
  
  
Reply

  
  
  
  
   
    
    
 
    
    
    
Reply to Sender   Recommend
    
    
    
    
Message 1 in
    Discussion 
    
   
  
  

  
 
 
  
  
   
    
    
From: Sujay
    
    
   
   
    
    


    Hello Users ,

    

    I am new to .NET framework , so I need some help . At present , my

    application shows all the records present in the db in the DataGrid. I want

    to create a appln., which shall filter all the records according to the

    criteria specified . For example, if the user wants to search by "Emp
    ID",

    he inputs the Emp Id in the text box , and clicks on the search button. If

    the record is present the datagrid is refreshed and the corresponding
    record

    displayed . The code I have written for the search is as follows, but the

    datagrid does not get refreshed :- 

    

    string strEmpID = nEmpID.ToString();

    

    if(MyOleDbConnection.State.ToString() == "Closed")

    MyOleDbConnection.Open();

    

    OleDbDataAdapter NewAdapter = new

    OleDbDataAdapter("select * from emp where emp.EmpID ==

    txtEmpID.text",MyOleDbConnection);

    

    MyOleDbDataAdapter.Fill(ds1); 

    DataGrid1.DataBind();

    

    return true;

    

    

    Can anyone say me where am I going wrong .

    

    Any help would be appreciated .

    

    Regards ,

    

    Sujay

    

    

    

    Sujay Ghosh

    

    iGATE Global Solutions Ltd.,

    ( formerly known as Mascot Systems Ltd.),

    No.1, Main Road , Jakkasandra ,

    Off Sarjapur Road ,

    Koramangala Extn .

    Bangalore - 560 034 

    

    Mail : [EMAIL PROTECTED]

    Phone : + 91 - 080 - 552 - 1701 - 06 ( Extn : 5010)

    Fax : 91-080-5521704

    Mobile : 98454 67789
    
   
  
  

  
 





View other groups in this
category. 







-----------------------------------------------------------

To stop getting this e-mail, or change how often it arrives, go to your E-mail 
Settings.
http://groups.msn.com/BDotNet/_emailsettings.msnw

Need help? If you've forgotten your password, please go to Passport Member Services.
http://groups.msn.com/_passportredir.msnw?ppmprop=help

For other questions or feedback, go to our Contact Us page.
http://groups.msn.com/contact

If you do not want to receive future e-mail from this MSN group, or if you received 
this message by mistake, please click the "Remove" link below. On the pre-addressed 
e-mail message that opens, simply click "Send". Your e-mail address will be deleted 
from this group's mailing list.
mailto:[EMAIL PROTECTED]

Reply via email to