Amir Mirkamali RSS 2.0
 Monday, August 03, 2009
public int GetOrdinal(string tableName, string name)
 {
     DataView schema = GetSchemaTable().DefaultView;
     schema.RowFilter = String.Format("BaseTableName='{0}' AND ColumnName='{1}'", tableName, name);
     if (schema.Count > 0)
         return Convert.ToInt32(schema[0]["ColumnOrdinal"]);
     else
         throw new IndexOutOfRangeException();
 }
Monday, August 03, 2009 12:20:11 PM UTC  #    -
ASP NET 1.0 | ASP NET 2.0 | SQL Server
Archive
<August 2009>
SunMonTueWedThuFriSat
2627282930311
2345678
9101112131415
16171819202122
23242526272829
303112345
Blogroll
About the author/Disclaimer

استفاده از مطالب سایت با ذکر منبع آزاد است

© Copyright 2012
Amir Mirkamali

Statistics
Total Posts: 40
This Year: 0
This Month: 0
This Week: 0
Comments: 1
Themes
All Content © 2012, Amir Mirkamali