I want to show database data in a grid view in C# by this code :
public void Selectalbums()
{
string QuerySelect = "select * from albums_tbl ";
SQLiteCommand cmd = new SQLiteCommand(QuerySelect, cn );
SQLiteDataAdapter da = new SQLiteDataAdapter(cmd);
DataTable dt = new DataTable();
da.Fill(dt);
dataGridView2.DataSource = dt;
}
now when I want to show a big string in a cell , it does not show compeletely !
how can I do this :
I set a maximum width for a column's cells (for exampele 250 px)and if the string is bigger than 250 px it will be shown in multiline mode ! I searched for it in stackoverflow and other sites but I did note find a solution
the width is Constante but when the stirring getting bigger this cell will be multiline
I'm using. NET Framework 3.5