Posts

Showing posts from May, 2011

MECIT Open Day :: CAR SHOW

Image

Pigeon Impossible

Failed Attempt to give tilt-shift effect :(

Image

How to get distinct rows from a DataTable

[DATATABLE].DefaultView.ToTable(true, FIELDS);

Very simple :) http://msdn.microsoft.com/en-us/library/h2b6ehaa.aspx
Earlier to avoid duplicate values, I used a separate function which loop through the datatable to avoid the duplicates. But now it is not required

public static DataTable SelectDistinct(DataTable sourceTable, string fieldName)


{

DataTable dt = new DataTable();

dt.Columns.Add(fieldName, sourceTable.Columns[fieldName].DataType);



object lastValue = null;

foreach (DataRow dr in sourceTable.Select("", fieldName))

{

if (lastValue == null

!(compareValues(lastValue, dr[fieldName])))

{

lastValue = dr[fieldName];

dt.Rows.Add(new object[] { lastValue });

}

}

return dt;

}

http://www.codeproject.com/KB/database/SelectDistinctCSharp.aspx

Rhino

Image

Spider

Image
സ്വപ്‌നങ്ങള്‍ നെയ്യുന്നതിനെപ്പറ്റി ഈ എട്ടുകാലിക്കു
പറയാനുള്ളതില്‍ കവിഞ്ഞൊന്നും എനിക്കറിയില്ല .
വീരാന്‍ കുട്ടി