Hi! I have gridview with two column. Id and number. Id begin 1 continue till 300.
Id
|
Number
|
1
|
2
|
2
|
1
|
3
|
4
|
4
|
5
|
5
|
3
|
6
|
2
|
7
|
5
|
8
|
3
|
9
|
1
|
10
|
1
|
11
|
2
|
13
|
2
|
14
|
5
|
But I want insert id and number from gridview into TableNumber like this:
If id in( 1 , 9) then add three space before number .
If id in( 10 ,9 9) then add two space before number .
If id in( 100, 999) then add one space before number .
For example:
" 1"
" 2"
" 3"
" 4"
" 5"
" 6"
" 7"
" 8"
" 9"
" 10"
" 11"
" 100"
" 101"
How I can solve this?