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

New Message on BDOTNET

-----------------------------------------------------------
From: nitin_karan
Message 2 in Discussion


Hi Karthikeyan, 
1. You cannot fill a datagrid with setting the two properties. There's setdatabindings 
function, but that again requires these properties. However you don't require 
Datamember property to be set up. E.g. if u want to bind to Table named 'A' in DataSet 
than u can do 
grid.datasource = dataset.tables["A"]; 
This will work without datamember. 
2. Add/Remove the rows from the corresponding datatable object to which you have 
binded your grid. Continuing with above example 
Dataset.Table["A"].Add(),Dataset.Table["A"],Remove() will do the requisite tasks for 
u. 
3. No. A datareader cannot be used to fill the datagrid using bindings Reason, any 
object that can be used for binding must satisfy at least one property       Any 
component that implements the <MSHelp:link tabIndex=0 
keywords="frlrfSystemCollectionsIListClassTopic">IList</MSHelp:link> interface. This 
includes single-dimension arrays. <o:p></o:p>    Any component that implements the 
<MSHelp:link tabIndex=0 
keywords="frlrfSystemComponentModelIListSourceClassTopic">IListSource</MSHelp:link> 
interface. <o:p></o:p>    Any component that implements the <MSHelp:link tabIndex=0 
keywords="frlrfSystemComponentModelIBindingListClassTopic">IBindingList</MSHelp:link> 
interface.  
4. Yes you can declare a dataset to be public and use it anywhere u want. 
  
--Nitin 
<o:p> </o:p> 
<o:p> </o:p> 
 
  
  
  
You can bind to the following structures if their elements expose public properties:   
 Any component that implements the <MSHelp:link tabIndex=0 
keywords="frlrfSystemCollectionsIListClassTopic">IList</MSHelp:link> interface. This 
includes single-dimension arrays.        Any component that implements the 
<MSHelp:link tabIndex=0 
keywords="frlrfSystemComponentModelIListSourceClassTopic">IListSource</MSHelp:link> 
interface.        Any component that implements the <MSHelp:link tabIndex=0 
keywords="frlrfSystemComponentModelIBindingListClassTopic">IBindingList</MSHelp:link> 
interface. 

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

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