This is what I've achieved do far:
var listCreationInfo = new ListCreationInformation();
listCreationInfo.Title = "New List";
listCreationInfo.TemplateType = (int)ListTemplateType.CustomGrid;
List list = web.Lists.Add(listCreationInfo);
list.Update();
ctxt.ExecuteQuery();
Field parent = list.Fields.AddFieldAsXml(
@"<Field Type='Lookup' DisplayName='ParentContentType'
Required='FALSE' EnforceUniqueValues='FALSE'
List='" + list.TemplateFeatureId + @"'
ShowField='Title' UnlimitedLengthInDocumentLibrary='FALSE'
RelationshipDeleteBehavior='None'
StaticName='ParentContentType' Name='ParentContentType'/>",
true, AddFieldOptions.DefaultValue);
But I am not able to set the Get information from: value for this lookup field. Can anyone please suggest how to achieve it?