void panelEx1_SelectionChanged(DataPanelViewRow item) { }
DataPanelViewRowControl panelEx1_SetItemTemplate(DataPanelViewRow item) { DataPanelViewRowControl control = null; DateTime startTime = DateTime.Now; if (cbxIsEqualHeight.Checked) { WorkBench pnl = new WorkBench(); pnl.DataPanelRow = item; pnl.RefreshData(); control = pnl; } else { ReplyModel model = item as ReplyModel; model.ReplyData = GetReply(int.Parse(model.DataRow[0].ToString())); ReplyUserControl pnl = new ReplyUserControl(); pnl.DataPanelRow = model; control = pnl; } richTextBox1.AppendText((DateTime.Now - startTime).TotalMilliseconds + "\n"); richTextBox1.ScrollToCaret(); return control; }
void panelEx1_ItemHeightChanged(DataPanelViewRow item) { //DataPanelViewRowControl pnl = sender as DataPanelViewRowControl; //this.panelEx1.Refresh(pnl.DataPanelRow.RowIndex); }