English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

dim dr as datarow()
and
dim dr() as datarow

2006-11-17 20:47:07 · 2 answers · asked by Harish V 1 in Education & Reference Words & Wordplay

2 answers

datarow() is the start of a module, you don't need the () to declare something, unless you're declaring the dr() module as the variable of datarow.

So dim dr as datarow() would be declaring the variable dr as the datarow() module, and vice versa.

2006-11-17 20:56:19 · answer #1 · answered by Jay S 5 · 0 0

Well, a DataRow is a row in a DataTable, while a DataRowView is a row
in a DataView. So, the question becomes, what is the difference between
a DataTable and a DataView?

A DataView provides a different look into a DataTable. It is, if you
will a "false front"... a "façade" in front of a DataTable. The
DataTable holds the real data... the DataView looks just like the data
table, but allows you to do things to the data.

For example, you can ask your DataView to present only some of the
DataRows in your DataTable and not others. Or, you can ask it to
present the DataRows sorted in a particular order. You can't sort the
DataRows in a DataTable, but you can ask a DataView on a DataTable to
return its DataRowViews in a particular order. So, the DataView makes
it look as though the DataTable is sorted (when it really isn't).

In short, if you want to see (in a list view, for example, or a
DataGrid) the rows in a DataTable in a certain way, plunk a DataView
overtop of the data table and display the DataRowViews, instead of
displaying DataRows directly.

2006-11-17 20:49:16 · answer #2 · answered by sugar candy 6 · 0 0

fedest.com, questions and answers