DataTable ve Dataset Column DataType Degisimi

DataTable ve DataSet’de eklenen sutunun veri tipini degistirmek icin;

 

Data Table icin;


DataTable Dt = new DataTable();
Dt.Columns.Add("A");
Dt.Columns[0].DataType = typeof(Int32);

DataSet icin;


DataSet Ds = new DataSet();
Ds.Tables[0].Columns[0].DataType = typeof(Int32);

Leave a Reply

E-posta hesabınız yayımlanmayacak.

This site uses Akismet to reduce spam. Learn how your comment data is processed.