Click here to Skip to main content
15,885,435 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Receipt_number

PT17000090
PT17000091
PT17000092
PT17000093
//Missing Value (PT17000094)
PT17000095
PT17000096
PT17000097

C#
I need to display an empty row with a text missing value or else a row with missed value
(PT17000094)..is this possible?? Can anyone help me out


What I have tried:

Am fetching the details from Database and the value is already missing there.. I fetch the table and display in my browser ...For the Front End side the missing value must be lik an empty row or a row denoting value missing...is this possible .. Its necessary only when a record missing in series or else not necessary..Can u get what am saying???
Posted
Updated 14-Mar-16 22:53pm

1 solution

If you are having number part in a separate integer column, you can loop through them in your stored procedure and add the missing ones in the record set that you are returning.

If not then, remove "PT" from all the string values, then loop through all the numbers and add missing values.
 
Share this answer
 
Comments
alia007 15-Mar-16 5:11am    
Yea I have last three digits as a separate integer column ...can u help me how to add missing values?
dan!sh 15-Mar-16 5:19am    
Will the number always start with 17000? If not then 3 digits are of not much use.
alia007 15-Mar-16 6:45am    
I mean the last three digits can be split...not the first three...
17000 is not constant wherein last 6 digits are taken into account
and split
alia007 15-Mar-16 6:48am    
PM08000164 -> 164
PM09000178 -> 178
PM10000124 -> 124
PM13000015 -> 015
PM15000006 -> 006


I have different sequence like this. the last 3 digits are taken into account
dan!sh 15-Mar-16 8:00am    
Is the format like [2 alphabet][numbers]?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900