Click here to Skip to main content
15,851,453 members
Home / Discussions / C#
   

C#

 
AnswerRe: How to remove rows of a DataTable based on checkboxes? Pin
OriginalGriff1-Apr-21 10:33
mveOriginalGriff1-Apr-21 10:33 
GeneralRe: How to remove rows of a DataTable based on checkboxes? Pin
Alex Dunlop1-Apr-21 19:11
Alex Dunlop1-Apr-21 19:11 
GeneralRe: How to remove rows of a DataTable based on checkboxes? Pin
jschell9-Apr-21 15:59
jschell9-Apr-21 15:59 
GeneralRe: How to remove rows of a DataTable based on checkboxes? Pin
Alex Dunlop1-Apr-21 19:24
Alex Dunlop1-Apr-21 19:24 
GeneralRe: How to remove rows of a DataTable based on checkboxes? Pin
Alex Dunlop1-Apr-21 19:28
Alex Dunlop1-Apr-21 19:28 
AnswerRe: How to remove rows of a DataTable based on checkboxes? Pin
Mycroft Holmes1-Apr-21 14:58
professionalMycroft Holmes1-Apr-21 14:58 
GeneralRe: How to remove rows of a DataTable based on checkboxes? Pin
Alex Dunlop1-Apr-21 19:12
Alex Dunlop1-Apr-21 19:12 
GeneralRe: How to remove rows of a DataTable based on checkboxes? Pin
Mycroft Holmes2-Apr-21 14:18
professionalMycroft Holmes2-Apr-21 14:18 
Your menu and checkbox structure is fine - your treatment of the datatable is not.

Create a new datatable (or list) to store the rows to be displayed.
Loop each record in the source datatable (2k rows from the database)
check each of the criteria on the row
If the row passes the filter then add it to the display datatable or list.

DO NOT DELETE THE DATA FROM THE SOURCE DATATABLE or you need to go back to the database for each filter.
Never underestimate the power of human stupidity -
RAH
I'm old. I know stuff - JSOP

AnswerRe: How to remove rows of a DataTable based on checkboxes? Pin
Gerry Schmitz1-Apr-21 19:28
mveGerry Schmitz1-Apr-21 19:28 
GeneralRe: How to remove rows of a DataTable based on checkboxes? Pin
Alex Dunlop1-Apr-21 19:32
Alex Dunlop1-Apr-21 19:32 
GeneralRe: How to remove rows of a DataTable based on checkboxes? Pin
Gerry Schmitz1-Apr-21 20:39
mveGerry Schmitz1-Apr-21 20:39 
QuestionPartial View Question Pin
pkfox31-Mar-21 9:39
professionalpkfox31-Mar-21 9:39 
AnswerRe: Partial View Question Pin
Matthew Dennis31-Mar-21 12:04
sysadminMatthew Dennis31-Mar-21 12:04 
GeneralRe: Partial View Question Pin
pkfox31-Mar-21 22:13
professionalpkfox31-Mar-21 22:13 
QuestionHow autoconnect shapes in Canvas WPF Pin
Newbee_Mark31-Mar-21 0:54
Newbee_Mark31-Mar-21 0:54 
AnswerRe: How autoconnect shapes in Canvas WPF Pin
Gerry Schmitz31-Mar-21 8:33
mveGerry Schmitz31-Mar-21 8:33 
GeneralRe: How autoconnect shapes in Canvas WPF Pin
Newbee_Mark31-Mar-21 8:37
Newbee_Mark31-Mar-21 8:37 
GeneralRe: How autoconnect shapes in Canvas WPF Pin
Gerry Schmitz31-Mar-21 15:57
mveGerry Schmitz31-Mar-21 15:57 
GeneralRe: How autoconnect shapes in Canvas WPF Pin
Newbee_Mark1-Apr-21 0:40
Newbee_Mark1-Apr-21 0:40 
GeneralRe: How autoconnect shapes in Canvas WPF Pin
Gerry Schmitz1-Apr-21 7:24
mveGerry Schmitz1-Apr-21 7:24 
GeneralRe: How autoconnect shapes in Canvas WPF Pin
Newbee_Mark1-Apr-21 23:54
Newbee_Mark1-Apr-21 23:54 
QuestionList not printing out hardcoded books already added to list Pin
Member 1451443230-Mar-21 13:14
Member 1451443230-Mar-21 13:14 
AnswerRe: List not printing out hardcoded books already added to list Pin
Dave Kreskowiak30-Mar-21 15:03
mveDave Kreskowiak30-Mar-21 15:03 
GeneralRe: List not printing out hardcoded books already added to list Pin
Member 1451443231-Mar-21 11:27
Member 1451443231-Mar-21 11:27 
GeneralRe: List not printing out hardcoded books already added to list Pin
Dave Kreskowiak31-Mar-21 11:33
mveDave Kreskowiak31-Mar-21 11:33 

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.