Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
01-11-22 08:46 AM
Filter Collection을 사용할때 필터값이 정확히 일치가 아닌 필터값이 포함되어있으면 콜렉션에 추가 할 수 있는지 궁금합니다.
Filter Collection 코드입니다.
Dim NewRow As DataRow
Collection_Out = Collection_In.Clone
For Each parentRow As DataRow In Collection_In.Select(Select_Condition)
NewRow = Collection_Out.NewRow
For Each c As DataColumn In NewRow.Table.Columns
NewRow(c.ColumnName) = parentRow(c.ColumnName)
Next
Collection_Out.Rows.Add(NewRow)
Next
NewRow = Nothing
Collection_In = Nothing
Filter Collection 코드입니다.
Dim NewRow As DataRow
Collection_Out = Collection_In.Clone
For Each parentRow As DataRow In Collection_In.Select(Select_Condition)
NewRow = Collection_Out.NewRow
For Each c As DataColumn In NewRow.Table.Columns
NewRow(c.ColumnName) = parentRow(c.ColumnName)
Next
Collection_Out.Rows.Add(NewRow)
Next
NewRow = Nothing
Collection_In = Nothing
Answered! Go to Answer.
1 BEST ANSWER
Helpful Answers
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
01-11-22 01:17 PM
Collection은 System.Data.DataTable 객체입니다.
Select(String) 메쏘드는 다양한 연산자를 지원합니다.
정확한 일치가 아닌 검색을 하려면 LIKE 키워드를 사용하면 됩니다.
다음의 마이크로소프트 교육 페이지를 참고하십시오.
DataColumn.Expression 속성 (System.Data) | Microsoft Learn
#Collections #Filter
Select(String) 메쏘드는 다양한 연산자를 지원합니다.
정확한 일치가 아닌 검색을 하려면 LIKE 키워드를 사용하면 됩니다.
다음의 마이크로소프트 교육 페이지를 참고하십시오.
DataColumn.Expression 속성 (System.Data) | Microsoft Learn
#Collections #Filter
2 REPLIES 2
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
01-11-22 09:30 AM
What is the question here
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
01-11-22 01:17 PM
Collection은 System.Data.DataTable 객체입니다.
Select(String) 메쏘드는 다양한 연산자를 지원합니다.
정확한 일치가 아닌 검색을 하려면 LIKE 키워드를 사용하면 됩니다.
다음의 마이크로소프트 교육 페이지를 참고하십시오.
DataColumn.Expression 속성 (System.Data) | Microsoft Learn
#Collections #Filter
Select(String) 메쏘드는 다양한 연산자를 지원합니다.
정확한 일치가 아닌 검색을 하려면 LIKE 키워드를 사용하면 됩니다.
다음의 마이크로소프트 교육 페이지를 참고하십시오.
DataColumn.Expression 속성 (System.Data) | Microsoft Learn
#Collections #Filter
