C#.Net: Apply Selection Formula in (.Net Builtin) Crystal Report 9

October 1st, 2007

//In the given code below, CrptInTransit is the name of calling report, and crystalReportViewer1 is use to display the report.

CrptInTransit report = new CrptInTransit();

report.RecordSelectionFormula = “{tblIntransit.ScrollDate} >= #” + DateFrom.ToShortDateString() + “# and {tblIntransit.ScrollDate} <= #” + DateTo.ToShortDateString() + “#”;

crystalReportViewer1.ReportSource = report;

C#.Net: How to Check/Uncheck the CheckBox in DataGridView1

September 28th, 2007

private void dataGridView1_CellClick(object sender, DataGridViewCellEventArgse)
{
bool value = (bool)(this.dataGridView1.Rows[e.RowIndex].Cells[0].Value ?? false);
this.dataGridView1.Rows[e.RowIndex].Cells[0].Value = !value;
}

Difference between MyISAM and InnoDB

September 25th, 2007
  1. MyISAM is faster then InnoDB
  2. MyISAM

Remove all characters except numbers and letters from a string in PHP

September 21st, 2007

<?php

$string = ‘your string’;

$new_string = ereg_replace( ‘[^A-Za-z0-9]‘, ”, $string);

echo $new_string;

?>

We Love Pakistan

August 11th, 2007

I Still Love Pakistan do you