Click here to Skip to main content
15,850,547 members
Home / Discussions / C#
   

C#

 
QuestionitextSharp with C# Pin
Ismael Oliveira 202129-Jul-21 7:08
Ismael Oliveira 202129-Jul-21 7:08 
AnswerRe: itextSharp with C# Pin
Dave Kreskowiak29-Jul-21 7:33
mveDave Kreskowiak29-Jul-21 7:33 
GeneralRe: itextSharp with C# Pin
Ismael Oliveira 202131-Jul-21 15:50
Ismael Oliveira 202131-Jul-21 15:50 
GeneralRe: itextSharp with C# Pin
Dave Kreskowiak31-Jul-21 16:05
mveDave Kreskowiak31-Jul-21 16:05 
QuestionHow to create filtering for DataTable based on toggle switches? Pin
Alex Dunlop27-Jul-21 22:46
Alex Dunlop27-Jul-21 22:46 
AnswerRe: How to create filtering for DataTable based on toggle switches? Pin
OriginalGriff27-Jul-21 22:53
mveOriginalGriff27-Jul-21 22:53 
GeneralRe: How to create filtering for DataTable based on toggle switches? Pin
Alex Dunlop27-Jul-21 23:03
Alex Dunlop27-Jul-21 23:03 
GeneralRe: How to create filtering for DataTable based on toggle switches? Pin
OriginalGriff27-Jul-21 23:13
mveOriginalGriff27-Jul-21 23:13 
If you don't know, then you need to process them.
Create a List<string> and loop through your switches: if it's set, add the condition string to the collection:
C#
if (myCheck.Checked)
   {
   myList.Add($"Column2 = '{checked_item2[n]}'");
   }
Then when you have them all, use string.Join[^] with a separator of " OR " to produce your filter.
"I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
"Common sense is so rare these days, it should be classified as a super power" - Random T-shirt
AntiTwitter: @DalekDave is now a follower!

GeneralRe: How to create filtering for DataTable based on toggle switches? Pin
Alex Dunlop28-Jul-21 0:35
Alex Dunlop28-Jul-21 0:35 
GeneralRe: How to create filtering for DataTable based on toggle switches? Pin
OriginalGriff28-Jul-21 1:47
mveOriginalGriff28-Jul-21 1:47 
GeneralRe: How to create filtering for DataTable based on toggle switches? Pin
Alex Dunlop28-Jul-21 21:11
Alex Dunlop28-Jul-21 21:11 
GeneralRe: How to create filtering for DataTable based on toggle switches? Pin
OriginalGriff28-Jul-21 23:00
mveOriginalGriff28-Jul-21 23:00 
AnswerRe: How to create filtering for DataTable based on toggle switches? Pin
jsc4228-Jul-21 0:35
professionaljsc4228-Jul-21 0:35 
QuestionHow to copy DataTable contents into SQLite table? Pin
Alex Dunlop26-Jul-21 21:37
Alex Dunlop26-Jul-21 21:37 
AnswerRe: How to copy DataTable contents into SQLite table? Pin
OriginalGriff26-Jul-21 22:06
mveOriginalGriff26-Jul-21 22:06 
GeneralRe: How to copy DataTable contents into SQLite table? Pin
Alex Dunlop26-Jul-21 22:16
Alex Dunlop26-Jul-21 22:16 
GeneralRe: How to copy DataTable contents into SQLite table? Pin
Alex Dunlop26-Jul-21 23:58
Alex Dunlop26-Jul-21 23:58 
GeneralRe: How to copy DataTable contents into SQLite table? Pin
OriginalGriff27-Jul-21 0:09
mveOriginalGriff27-Jul-21 0:09 
GeneralRe: How to copy DataTable contents into SQLite table? Pin
Alex Dunlop27-Jul-21 1:39
Alex Dunlop27-Jul-21 1:39 
AnswerRe: How to copy DataTable contents into SQLite table? Pin
Richard Andrew x6428-Jul-21 3:36
professionalRichard Andrew x6428-Jul-21 3:36 
QuestionRTD communication error (COM) / .ConnectData(Int32 topicId, Object[]& parameters, Boolean& newValue) Pin
Juliano Zucatti26-Jul-21 11:14
Juliano Zucatti26-Jul-21 11:14 
QuestionHow to shuffle an array VS Windows Form Application? Pin
Sofi081326-Jul-21 1:26
Sofi081326-Jul-21 1:26 
AnswerRe: How to shuffle an array VS Windows Form Application? Pin
OriginalGriff26-Jul-21 1:40
mveOriginalGriff26-Jul-21 1:40 
GeneralRe: How to shuffle an array VS Windows Form Application? Pin
Sofi081326-Jul-21 2:22
Sofi081326-Jul-21 2:22 
AnswerRe: How to shuffle an array VS Windows Form Application? Pin
Richard MacCutchan26-Jul-21 1:42
mveRichard MacCutchan26-Jul-21 1:42 

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.