Total string length is 5 chars
I have a scenario, ID starts with
A0001 and ends with A9999 then B0001 to B9999 until F0001 to f9999
after that
If you need to take it from the database and do this you can use something like the following.
int dbid = /* get id from db */ string id = dbid.ToString("X5");
This should give you the format you are looking for as a direct convert from the DB ID.