S
Scott M
I have a datagrid that is bound to a typed dataset.
I also have a time on my form and during it I an filling a table on the
dataset using the FillDataset method on the Data Application Block (v2).
This is great and works fine except that the datagrid that I'm bound to has
scroll bars that are flashing while I'm performing my update to the
dataset...
A little code:
Dim tablename() As String = {JobStepsDataSet.Tables(0).TableName}
StatusStepsDataGrid.SuspendLayout()
JobStepsDataSet.Clear()
SqlHelper.FillDataset(CONNECTION_STRING, CommandType.StoredProcedure,
"procDTSGetLastRunExecution", JobStepsDataSet, tablename, aparam)
StatusStepsDataGrid.ResumeLayout(False)
I have to clear the dataset so I don't get double data in the datatable.
And the syspendlayout method of the datagrid doesn't seem to be keeping the
flicker from happening. (By flicker I mean the scrollbars are shrinking
then coming back to "filled" size")
Anyone know how I can take care of this?
THANKS!
Scott
I also have a time on my form and during it I an filling a table on the
dataset using the FillDataset method on the Data Application Block (v2).
This is great and works fine except that the datagrid that I'm bound to has
scroll bars that are flashing while I'm performing my update to the
dataset...
A little code:
Dim tablename() As String = {JobStepsDataSet.Tables(0).TableName}
StatusStepsDataGrid.SuspendLayout()
JobStepsDataSet.Clear()
SqlHelper.FillDataset(CONNECTION_STRING, CommandType.StoredProcedure,
"procDTSGetLastRunExecution", JobStepsDataSet, tablename, aparam)
StatusStepsDataGrid.ResumeLayout(False)
I have to clear the dataset so I don't get double data in the datatable.
And the syspendlayout method of the datagrid doesn't seem to be keeping the
flicker from happening. (By flicker I mean the scrollbars are shrinking
then coming back to "filled" size")
Anyone know how I can take care of this?
THANKS!
Scott