Quantcast
Channel: MySQL Forums - Connector/NET and C#, Mono, .Net
Viewing all articles
Browse latest Browse all 1451

Please Help ! C# WPF Row height cannot increase automatically by NaN value (no replies)

$
0
0
Hello,

I've been crazily exhausted in finding solution for several hours on internet but failed. Therefore, I'm sending MayDay SOS to here...

I connected MySQL database to WPF DataGrid through below simple code. However, when I run the applicaiton, the DataGrid show only same height rows with cut content not fully shown eventhough the property of row height of DataGrid is NaN.

Why NaN value doesn't work? Is there any alternative solution to bypass this situation?

Because I have big limitation that my major is totally different from software programming but biochemistry....Solving by myself is almost impossible though I already tried my best and exhausted deadly..

Please, Please I would much highly appreciate if somebody share highly excellent insights of programming......

Thank you so much !

My best regard

private void datagridbind()[enter image description here][1]
{
MySqlConnection Conn = new MySqlConnection();
Conn.ConnectionString = myConnectionString;
Conn.Open();

try
{
string sql = "SELECT name_basic, visitdate_basic, majorcomplain_basic, majorsolution_basic,dialogue_basic,memonote_basic FROM user";
MySqlCommand comm = new MySqlCommand(sql, Conn);
comm.ExecuteNonQuery();

MySqlDataAdapter da = new MySqlDataAdapter(comm);
DataTable dt = new DataTable("user");
da.Fill(dt);
dataGrid.ItemsSource = dt.DefaultView;
da.Update(dt);
dataGrid.ScrollIntoView(CollectionView.NewItemPlaceholder);
Conn.Close();

}
catch (Exception ex)
{
MessageBox.Show(ex.Message);
}


}

Viewing all articles
Browse latest Browse all 1451

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>