I got the answer by trouble shooting the Reporting Services. The below method will change the check box value.
rs.SetItemHistoryOptions(name, true, true, sd);
public void SetItemHistoryOptions(
string ItemPath,
bool EnableManualSnapshotCreation,
bool KeepExecutionSnapshots,
ScheduleDefinitionOrReference Item
)