Click here to Skip to main content
15,845,273 members
Home / Discussions / C#
   

C#

 
GeneralRe: question about a method program Pin
Joanna Moses13-Jun-20 6:41
Joanna Moses13-Jun-20 6:41 
QuestionHow to know if a disk is magnetic or flash Pin
kalberts22-May-20 14:43
kalberts22-May-20 14:43 
AnswerRe: How to know if a disk is magnetic or flash Pin
OriginalGriff22-May-20 21:46
mveOriginalGriff22-May-20 21:46 
GeneralRe: How to know if a disk is magnetic or flash Pin
kalberts23-May-20 7:45
kalberts23-May-20 7:45 
GeneralRe: How to know if a disk is magnetic or flash Pin
OriginalGriff23-May-20 10:14
mveOriginalGriff23-May-20 10:14 
QuestionIs it possible to apply a custom filter (i.e. my own delegate) to a DataTable? Pin
arnold_w22-May-20 5:29
arnold_w22-May-20 5:29 
AnswerRe: Is it possible to apply a custom filter (i.e. my own delegate) to a DataTable? Pin
Richard MacCutchan22-May-20 6:32
mveRichard MacCutchan22-May-20 6:32 
GeneralRe: Is it possible to apply a custom filter (i.e. my own delegate) to a DataTable? Pin
arnold_w22-May-20 10:43
arnold_w22-May-20 10:43 
In the link (DataTable.Select Method (System.Data) | Microsoft Docs[^]) I can only find these prototypes:
C#
Select()
Select(String)
Select(String, String)
Select(String, String, DataViewRowState)
How can I supply a delegate using any of those methods?

I guess a workaround would be to create a hidden column named ShowThisRow and run through it with a for-loop and set the value to either true or false and then apply the standard string expression filters on that column. But it doesn't feels like it's the right way to do it, there must be a better solution to this (probably using a different class than DataTable to hold the data).
GeneralRe: Is it possible to apply a custom filter (i.e. my own delegate) to a DataTable? Pin
arnold_w24-May-20 22:02
arnold_w24-May-20 22:02 
GeneralRe: Is it possible to apply a custom filter (i.e. my own delegate) to a DataTable? Pin
Richard Deeming27-May-20 1:27
mveRichard Deeming27-May-20 1:27 
GeneralRe: Is it possible to apply a custom filter (i.e. my own delegate) to a DataTable? Pin
arnold_w27-May-20 3:44
arnold_w27-May-20 3:44 
GeneralRe: Is it possible to apply a custom filter (i.e. my own delegate) to a DataTable? Pin
Richard Deeming27-May-20 3:55
mveRichard Deeming27-May-20 3:55 
GeneralRe: Is it possible to apply a custom filter (i.e. my own delegate) to a DataTable? Pin
arnold_w27-May-20 5:05
arnold_w27-May-20 5:05 
AnswerRe: Is it possible to apply a custom filter (i.e. my own delegate) to a DataTable? Pin
Richard Deeming22-May-20 7:09
mveRichard Deeming22-May-20 7:09 
QuestionCan I show my data in a C# table, even though all the data is not in a single List/array? Pin
arnold_w21-May-20 21:06
arnold_w21-May-20 21:06 
AnswerRe: Can I show my data in a C# table, even though all the data is not in a single List/array? Pin
OriginalGriff21-May-20 21:29
mveOriginalGriff21-May-20 21:29 
GeneralRe: Can I show my data in a C# table, even though all the data is not in a single List/array? Pin
arnold_w21-May-20 21:45
arnold_w21-May-20 21:45 
AnswerRe: Can I show my data in a C# table, even though all the data is not in a single List/array? Pin
arnold_w22-May-20 1:17
arnold_w22-May-20 1:17 
GeneralRe: Can I show my data in a C# table, even though all the data is not in a single List/array? Pin
Richard MacCutchan22-May-20 1:40
mveRichard MacCutchan22-May-20 1:40 
GeneralRe: Can I show my data in a C# table, even though all the data is not in a single List/array? Pin
arnold_w22-May-20 2:08
arnold_w22-May-20 2:08 
GeneralRe: Can I show my data in a C# table, even though all the data is not in a single List/array? Pin
Richard Deeming22-May-20 2:12
mveRichard Deeming22-May-20 2:12 
GeneralRe: Can I show my data in a C# table, even though all the data is not in a single List/array? Pin
arnold_w22-May-20 2:16
arnold_w22-May-20 2:16 
GeneralRe: Can I show my data in a C# table, even though all the data is not in a single List/array? Pin
Richard Deeming22-May-20 2:17
mveRichard Deeming22-May-20 2:17 
QuestionHow can I filter what's shown in a DataGridView, without modifying the List that holds the data itself? Pin
arnold_w21-May-20 4:20
arnold_w21-May-20 4:20 
AnswerRe: How can I filter what's shown in a DataGridView, without modifying the List that holds the data itself? Pin
Richard Deeming21-May-20 5:24
mveRichard Deeming21-May-20 5:24 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.