1 dataset. Table [0]. Rows [I] [J]
Where I represents the number of I rows, and J represents the number of J Columns
2 dataset. Table [0]. Rows [I]. itemarray [J]
Where I represents the number of I rows, and J represents the number of J Columns
3 dataset. Tables [0]. Columns. Count
Retrieve the total number of columns in a table
4 dataset. Tables [0]. Rows. Count
Retrieve the total number of rows in the table
5 dataset. Tables [0]. Columns [I]. tostring ()
Retrieve the I column name of the table
Note: The calculation of rows and columns starts from 0.
========================================================== ================================
Dataset has taken the value from the database. Currently, dataset has
A B C
1 One
2 two 2
3 three 3
4 four 4
Can I implement the value of C equal to 2 and B?
In SQL, select B from temp_table where c = "2"
For (INT I = 0; I <dataset. Tables [0]. Rows. Count; I ++)
{
If (Dataset. Tables [0]. Rows [I] [2]. tostring (). Equals ("2 "))
{
String value = dataset. Tables [0]. Rows [I] [1]. tostring ();
}
}
The value of value is "two"
From: http://hi.baidu.com/36499861/blog/item/0910fb88cbc27599a5c27204.html