Click here to Skip to main content
15,898,371 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hi bax
how i can separating numbers in datagridview Simultaneously typing.
like 1,236,895,623
please hep me
thanks
Posted
Comments
Bala Selvanayagam 21-Feb-13 5:20am    
you mean to convert the comma separated values such as 1,236,895,623 into single values in C# ?

not very clear what you are after ?
fatima...68 24-Feb-13 9:10am    
hi my friend for example i want when im typing 15646 its outomaticaly convert to 15,646
boogac 21-Feb-13 7:05am    
you will write 1905 to cell and it becomes automaticly 1,905 while you are writing..is this you want?
fatima...68 24-Feb-13 9:06am    
hi thanks yes i want it
but in grid view
i cant solve it
boogac 25-Feb-13 4:02am    
you can get digit count like in this link http://www.dotnetperls.com/integer-digit-count
or of course there must be some other ways..
when you get the digit count you can put your comma anywhere you want example : http://csharp.net-informations.com/string/csharp-string-insert.htm
and if you do all this work inside DataGridView.CellValueChanged Event (http://msdn.microsoft.com/en-us/library/system.windows.forms.datagridview.cellvaluechanged.aspx) you can achieve , i suppose

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