public void BindData()
{
conn.Close();
cmd = new SqlCommand(“select * from tbl_test”, conn);
cmd.CommandType = CommandType.Text;
da = new SqlDataAdapter(cmd);
ds = new DataSet();
da.Fill(ds, “tbl_test”);
conn.Open();
cmd.ExecuteReader();
dgcategory.DataSource = ds;
conn.Close();
try
{
dgcategory.DataBind();
}
catch
{
dgcategory.CurrentPageIndex = 0;
}
}
-
In object-oriented languages the term "interface" is often used to define an abstract type that contains no data but exposes behav...
-
The following article discusses the WPF command binding feature with relation to Mouse clicks. One of WPF powerful features is the bindin...
-
In this section, you will learn about the action method of controller class. All the public methods of a Controller class are called Act...