Suggest me Datagrid view event
-
Hello Experts!! I am scanning barcode and display it into grid cell,Now i want to check that barcode is already present or scanned in same grid.I am not saving data into database. So please suggest me event for same action. e.g. no. name address 1 kidya U.S. 2 Sam U.K. if i scan 1 again then it must show msg "No. already scanned"
-
Hello Experts!! I am scanning barcode and display it into grid cell,Now i want to check that barcode is already present or scanned in same grid.I am not saving data into database. So please suggest me event for same action. e.g. no. name address 1 kidya U.S. 2 Sam U.K. if i scan 1 again then it must show msg "No. already scanned"
So before you add a scan you loop through the existing row/cells and check for existing records.
Never underestimate the power of human stupidity RAH
-
So before you add a scan you loop through the existing row/cells and check for existing records.
Never underestimate the power of human stupidity RAH
tell me event for that.i tried in cellEnter and cellLeave event but didn't work.
-
tell me event for that.i tried in cellEnter and cellLeave event but didn't work.
How are you adding the records
Never underestimate the power of human stupidity RAH
-
How are you adding the records
Never underestimate the power of human stupidity RAH
Mycroft Holmes wrote:
Never underestimate the power of human stupidity
You've ignored your own warning! :laugh:
Panic, Chaos, Destruction. My work here is done.
-
tell me event for that.i tried in cellEnter and cellLeave event but didn't work.
No, he's not suggesting hooking into an event. BEFORE adding a new row, ITERATE through the current content and CHECK for the DUPLICATE. Now, somewhere you have a line of code along the lines of:
Wibble hatstand = barcode.Read();
!! CHECK HERE !!
dataGrid.Add(hatstand);
Panic, Chaos, Destruction. My work here is done.
-
Mycroft Holmes wrote:
Never underestimate the power of human stupidity
You've ignored your own warning! :laugh:
Panic, Chaos, Destruction. My work here is done.
Slow afternoon and I've brick walled it with some WCF I'm fighting.
Never underestimate the power of human stupidity RAH
-
How are you adding the records
Never underestimate the power of human stupidity RAH
i am just scanning barcode then according to same barcode i am fetching record from sql and then show it on grid cell.So i want to ignore duplicate records.
-
Mycroft Holmes wrote:
Never underestimate the power of human stupidity
You've ignored your own warning! :laugh:
Panic, Chaos, Destruction. My work here is done.
I prefer the original:
Soha alábecsül a erő -ból emberi butaság
:)Luc Pattyn [Forum Guidelines] [My Articles]
The quality and detail of your question reflects on the effectiveness of the help you are likely to get. Show formatted code inside PRE tags, and give clear symptoms when describing a problem.