Click here to Skip to main content
15,891,136 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hi,

I have some value in categorymaster table when i execute below code the data is filling to datagrid but the value is not visible.

This is my code

MySqlConnection con = new MySqlConnection(GlobalClass._ConStr);
con.Open();
string sql = string.Format("select * from categorymaster");
MySqlDataAdapter adp = new MySqlDataAdapter(sql, con);
DataSet ds = new DataSet();
adp.Fill(ds, "emp");
con.Close();
DepartmentGridView.ItemsSource = ds.Tables[0].DefaultView;
DepartmentGridView.SelectedIndex = -1;
Posted
Updated 6-Oct-13 17:46pm
v2

1 solution

once check this property in your.aspx page

RowDetailsVisibilityMode="Visible" // add this code
 
Share this answer
 
Comments
Member 8653959 7-Oct-13 2:29am    
I am using .xaml windows

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900