Hi All,
I am not able to display the data in the datagrid,i am using button columns.
Can anyone help me with this?
if
{
connection.Open();
DataSet ds=
SqlDataAdapter adapter=
SqlCommand cmd=
cmd.CommandType=CommandType.StoredProcedure;
cmd.Parameters.Add("@Empsi",SqlDbType.VarChar,60);
cmd.Parameters["@Empsi"].Value=txtDetails.Text;
txtSample.Text=txtDetails.Text;
adapter.SelectCommand=cmd;
adapter.Fill(ds);
DataGrid1.DataSource=ds.DefaultViewManager;
DataGrid1.DataBind();
}
Thanks
jyoti