Rakesh,
This might be a little sloppy, but you could use the Insert method of string
string strOriginalValue = strOriginalValue.Insert(nStartIndex,
strValueYouWantToInsert);
knowing this, I would go;
string strOriginalValue = strOriginalValue.Insert(3, "-");
HTH
Marco
"Rakesh" <an*******@discussions.microsoft.com> wrote in message
news:7E**********************************@microsof t.com...
Hi,
My user types 7 digit numbers into one of my datacolumns like this:
9999999 I want that to be formatted like this: 999-9999
How could I use the DataColumn->Format property so as to add the '-' in
between? Or should I use some other property?
Thanks in advance,
Rakesh