Posted 15 October 2018, 1:30 am EST
Just tested out spread for winform and I like how fast it is compared to visual studio’s built in datagridview. But now I am kind of lost how I should be using this. Here are my questions.
- How do you fill textBox with cell click event? Below is code I used to use for datagridview. It allows to fill textBox automatically when I click the row. It seems I can’t use same code for fspread. How do I do this?
if (e.Row >= 0)
{
DataGridViewRow row = this.fpSpread1.[e.Row];
textBox1.Text = row.Cells["item_no"].Value.ToString();
textBox2.Text = row.Cells["lot_no"].Value.ToString();
}
-
How do you make columns fit for fspread? On datagridview, there was an option called “Fit” which will evenly distribute column width to fit the screen. It doesn’t look like fspread has this option.
-
How do you make column width set to auto? It only gives you specific value and it will not auto width the column header.
Thank you.