public UAReturn AddNewDatagridRow(string colName, string celdata, string rowdata, int rowindex, string datasetnameorindex)
{
if (rowdata == null || rowdata.Trim().Length < 2)
rowdata = ""; // or c() or NA
UAReturn r;
ServerDataSource dataSource = new ServerDataSource(_userSession.DefaultDispatcher, "", datasetnameorindex);
r = _userSession.DefaultDispatcher.addNewDataRow(colName, celdata, rowdata, rowindex, dataSource);//move out of following 'if' condition part
if (r.Success)
{
return r;
}
return null;
}