SqlCommand cmd = new SqlCommand("SELECT * FROM [t_memsch] where [m_memcode]='" + m_memcode_input.Text + "'", conn); SqlDataAdapter sda1 = new SqlDataAdapter(cmd); DataTable ds1 = new DataTable(); sda1.Fill(ds1); try { //int temp = ds1.Rows.Count for (int temp = ds1.Rows.Count; temp > 0; temp--) { chk_date(ds1.["m_cname"].ToString()); //Console.Write("Temp:", temp); //MessageBox.Show("i m here"); } }
try { //int temp = ds1.Rows.Count for (int temp = ds1.Rows.Count; temp > 0; temp--) { chk_date(ds1.Rows[temp]["m_cname"].ToString()); //Console.Write("Temp:", temp); //MessageBox.Show("i m here"); } }
ds1.Rows[temp]["m_cname"].ToString();
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)