private void rbtnBind_Click(object sender, EventArgs e) { if (this.radGridView1.DataSource == null) { WaitingForm.ShowForm(); this.radGridView1.DataSource = dt; } }
private static void ThreadTask(object owner) { waitingForm = new WaitingForm(); waitingForm.ShowInTaskbar = false; waitingForm.Owner = (Form)owner; waitingForm.FormBorderStyle = FormBorderStyle.None; waitingForm.ControlBox = false; waitingForm.TopMost = true; waitingForm.StartPosition = FormStartPosition.Manual; Application.Run(waitingForm); }
void radGridView1_DataBindingComplete(object sender, Telerik.WinControls.UI.GridViewBindingCompleteEventArgs e) { WaitingForm.CloseForm(); }