Sunday, 25 August 2013

DataGridView doesnt show scrollbar

DataGridView doesnt show scrollbar

DataGridView doesn't show scrollbar although all the configuration are
default. I didn't define the columns before running or use any binding,
only that code down here, datagrid creates the columns in real time when
the data arrives.
dAdapter4.SelectCommand = activityOnlyCmd;
var ds4 = new DataSet();
try
{
dConn.Open();
dAdapter4.Fill(ds4,"activities");
dConn.Close();
dataGridView.DataSource = ds4.Tables[0].DefaultView;
}

No comments:

Post a Comment