public UAReturn addNewVariable(string colName, string dgridval, int rowindex, string datasetnameorindex) { UAReturn r; ServerDataSource dataSource = new ServerDataSource(_userSession.DefaultDispatcher, "", datasetnameorindex); if ((r = _userSession.DefaultDispatcher.addNewColDatagrid(colName, dgridval, rowindex, dataSource)).Success)//2 { return r; } return null; }