Categories:
.NET (357)
C (330)
C++ (184)
CSS (84)
DBA (2)
General (7)
HTML (4)
Java (574)
JavaScript (106)
JSP (66)
Oracle (114)
Perl (46)
Perl (1)
PHP (2)
PL/SQL (1)
RSS (51)
Software QA (13)
SQL Server (1)
Windows (1)
XHTML (173)
Other Resources:
How can we add relation’s between table in a DataSet
How can we add relation’s between table in a DataSet ?
✍: Guest
Dim objRelation As DataRelation
objRelation=New
DataRelation("CustomerAddresses",objDataSet.Tables("Customer").Columns("Custid")
,objDataSet.Tables("Addresses").Columns("Custid_fk"))
objDataSet.Relations.Add(objRelation)
Relations can be added between “DataTable” objects using the “DataRelation” object. Above sample code is trying to build a relationship between “Customer” and “Addresses” “Datatable” using “CustomerAddresses” “DataRelation” object.
2007-10-24, 5274👍, 0💬
Popular Posts:
What does static variable mean? There are 3 main uses for static variables: If you declare within a ...
What is AL.EXE and RESGEN.EXE? In the previous question you have seen how we can use resource files ...
What are the two kinds of comments in JSP and what's the difference between them? <%-- JSP Co...
In below sample code if we create a object of class2 which constructor will fire first? Public Class...
How To Escape Special Characters in SQL statements? - MySQL FAQs - Introduction to SQL Basics There ...