Hello peeps,
This is really getting annoying, Im trying to figure out how to check whether or not a member is in my datagrid. I have 5 columns: firstname, lastname, membership, accountid, date. Can someone help me out here????????
SyncMaster170
0
Junior Poster in Training
Recommended Answers
Jump to PostIf its only this, then yoz can do:
// firstname, lastname, membership, accountid, date DataTable table = new DataTable(); // get the members (new ones) //now lets check if the member from table is already in the DGV: foreach (DataGridViewRow row in dataGridView1.Rows) { string memeberDGV = …
Jump to PostJust make sure the able name of the DataTable objects (the variable name, like I used "table") are different. With other words, table names must be different one to each other. Then you can have 100 of them at ones.
Jump to PostShow me your whole code of this.
Jump to PostSure you are keep on getting messages. For every single check of the user, no matter if its in the "list" of dgv, or not.
Do you want to show the meesage only for the user which is already in the list, or you would like to show the …
Jump to PostRemember, messages boxes, like you had them inside the code, will fire each row when looping through the dataTable. This is ok and normal (I reapeat, like you had them inside the loop).
I suggest you to use my code from the previos post, to notifly the user about duplications …
All 25 Replies
Mitja Bonca
557
Nearly a Posting Maven
SyncMaster170
0
Junior Poster in Training
Mitja Bonca
557
Nearly a Posting Maven
SyncMaster170
0
Junior Poster in Training
skatamatic
371
Practically a Posting Shark
SyncMaster170
0
Junior Poster in Training
Mitja Bonca
557
Nearly a Posting Maven
SyncMaster170
0
Junior Poster in Training
Mitja Bonca
557
Nearly a Posting Maven
SyncMaster170
0
Junior Poster in Training
Mitja Bonca
557
Nearly a Posting Maven
SyncMaster170
0
Junior Poster in Training
Mitja Bonca
557
Nearly a Posting Maven
SyncMaster170
0
Junior Poster in Training
Mitja Bonca
557
Nearly a Posting Maven
SyncMaster170
0
Junior Poster in Training
Mitja Bonca
557
Nearly a Posting Maven
Mitja Bonca
557
Nearly a Posting Maven
SyncMaster170
0
Junior Poster in Training
Mitja Bonca
557
Nearly a Posting Maven
SyncMaster170
0
Junior Poster in Training
SyncMaster170
0
Junior Poster in Training
Mitja Bonca
557
Nearly a Posting Maven
SyncMaster170
0
Junior Poster in Training
Mitja Bonca
557
Nearly a Posting Maven
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.