Question Automatically assigning alphanumeric roll no in datagridview column

sid

Member
Joined
Sep 16, 2011
Messages
13
Programming Experience
Beginner
hi...i m again here...
i have a datagridview on a form which contains studentname (in alphabetical order) and a blank rollno field according to the particular class.Now what i m suppose to do is to assign roll no on button click, starting from first student to last student.
Roll no is like 11DCE001...For eg:-
Roll No StudentName
11DCE001 A
11DCE002 B
11DCE003 C
....... .
....... .
til last row....
We can take a textbox to define the starting value..and checkboxes if needed..
please assist me on how to acccomplish this task
 
You say:
Roll no is like 11DCE001
but that doesn't really mean much because there are a lot of different values that could be considered to be like that. An example is all but useless without the rules. What are the rules for those roll numbers? Will it always be 2 digits followed by 3 letters followed by 3 digits? If not, what will it be?
 
Back
Top