Register for your free account! | Forgot your password?

Go Back   elitepvpers > Coders Den > .NET Languages
You last visited: Today at 15:24

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



[C#] How Can I replace it .

Discussion on [C#] How Can I replace it . within the .NET Languages forum part of the Coders Den category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Nov 2012
Posts: 10
Received Thanks: 1
[C#] How Can I replace it .

Fixed .
Superbuu. is offline  
Old 12/08/2012, 16:48   #2
 
tolio's Avatar
 
elite*gold: 2932
The Black Market: 169/1/0
Join Date: Oct 2009
Posts: 6,966
Received Thanks: 1,097
loop through all fields and try something like this
.replace(".",",")
tolio is offline  
Old 12/08/2012, 19:58   #3
 
elite*gold: 0
Join Date: Nov 2012
Posts: 10
Received Thanks: 1
Nulled.
Superbuu. is offline  
Old 12/08/2012, 22:29   #4

 
snow's Avatar
 
elite*gold: 724
Join Date: Mar 2011
Posts: 10,479
Received Thanks: 3,318
I guess he means something like this:

(may contain some errors, I don't know C#)

for (int i = 0; i < this.dataGridView2.Items.Count; i++) {
String val = this.dataGridView2.Items[i].toString();
this.dataGridView2.Items[i].Value = val.replace(".", ",");
}

Something in that way. Loop through every single cell and replace the "," with ".".
snow is offline  
Old 12/08/2012, 22:29   #5
 
'Heaven.'s Avatar
 
elite*gold: 1
The Black Market: 331/0/0
Join Date: Jun 2012
Posts: 5,819
Received Thanks: 3,200
Use
String nameitlikeuwant = this.rowset(...).Value.Replace(",",".")

this.rowset(...) = nameitlikeuwant
'Heaven. is offline  
Old 12/09/2012, 11:47   #6
 
elite*gold: 0
Join Date: Nov 2012
Posts: 10
Received Thanks: 1
Problem Fixed .
Thanks anyway
Superbuu. is offline  
Old 12/09/2012, 14:28   #7
 
elite*gold: 0
Join Date: May 2010
Posts: 793
Received Thanks: 268
can you post the code how you save the DataGridView to the DB?
nkkk is offline  
Reply


Similar Threads Similar Threads
Replace and Split...
08/29/2012 - C/C++ - 3 Replies
I'm fairly new in c, and I have two questions. 1. How I can replace letters in a variable? (login_packet) (~ to nothing) 2. How I can split the var login_packet? (with " ") Thanks ..
[Tut] how to replace items
04/25/2012 - Shaiya Hacks, Bots, Cheats & Exploits - 37 Replies
Im going to show you how to replace items npc have with what you want them to sell. Im going to use Losen Piettrei a weapon mechant in glitter to make a example 1. You must extract the data.saf file ( if you need to do this please take a look at the post to do it.) 2. You will need a Hex editor. Ok lets start Go to ur NPCQuest.SData located in ur client in the folder NPC. Open it with a hex editor.
Replace mob Tower
06/03/2011 - Metin2 Guides & Templates - 8 Replies
wie kann ich den Mob der Turm?
[C++]str.replace();
11/16/2010 - C/C++ - 5 Replies
-
Why cant I replace the pk2?
07/25/2009 - SRO Private Server - 2 Replies
Whenever I download babbes english sunsro pk2 and replace it, it always replaces it self to an older version and has to update back to 2.020 again, it does this with any other pk2..



All times are GMT +1. The time now is 15:27.


Powered by vBulletin®
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2026 elitepvpers All Rights Reserved.