public DataTable dataGrid(String query)
{
DataTable dt = new DataTable();
try
{
SqlCommand cm = new SqlCommand(query, conn);
SqlDataReader rd = cm.ExecuteReader();
dt.Load(rd);
}
catch (Exception ex)
{
//MessageBox.Show("Datatable Doldurma Hatası : " + ex);
}
return dt;
}