StrataFrame Forum
Back
Login
Login
Home
»
.NET Forums
»
General .NET Discussion
»
Group data from datatable
Group data from datatable
Post Reply
Like
0
Group data from datatable
View
Flat Ascending
Flat Descending
Threaded
Options
Subscribe to topic
Print This Topic
RSS Feed
Goto Topics Forum
Author
Message
Chan
Chan
posted 17 Years Ago
ANSWER
Topic Details
Share Topic
Group: Forum Members
Posts: 533,
Visits: 2K
Hi,
How could I retrieve datarow as sql below from datatable which its data still in datatable but not yet saved in database?
SELECT location from myDataTable GROUP BY location
Reply
Like
0
StrataFrame Team
S
StrataFrame Team
posted 17 Years Ago
ANSWER
Post Details
Share Post
S
Group: StrataFrame Developers
Posts: 3K,
Visits: 2.5K
You can use the MyBO.CurrentDataTable.Select() method. It returns an array of DataRow objects that match whatever criteria you specify. However, if you just want one field, you'll have to just iterate through the rows of the DataTable and get the values.
Reply
Like
0
GO
Merge Selected
Merge into selected topic...
Merge into merge target...
Merge into a specific topic ID...
Open Merge
Post Reply
Like
0
Similar Topics
Post Quoted Reply
Reading This Topic
Login
Login
Remember Me
Reset Password
Resend Validation Email
Login
Explore
Messages
Mentions
Search