I try to replace the file name which contains "TEMPDOCUMENTLIBRARY" with "SHAREDDOCS" in the docs (Typed Dataset). But somehow it does not replace it at all. What's wrong ?
for (int index = 0; index < docs.Document.Rows.Count; index++)
{
if (docs.Document[index].FileName.Contains("TEMPDOCUMENTLIBRARY"))
{
docs.Document[index].BeginEdit();
docs.Document[index].FileName.Replace("TEMPDOCUMENTLIBRARY", "SHAREDDOCS");
docs.Document[index].EndEdit();
}
}