' Comunicação com a Camada BLL |
Dim obj As New EspecialidadesBLL |
especialidadesDataGridView.DataSource = obj.Listagem() |
' Atualizando os objetos TextBox |
idesp.Text = especialidadesDataGridView(0, especialidadesDataGridView.CurrentRow.Index).Value.ToString() |
TextBox16.Text = especialidadesDataGridView(1, especialidadesDataGridView.CurrentRow.Index).Value.ToString() |
TextBox6.Text = especialidadesDataGridView(2, especialidadesDataGridView.CurrentRow.Index).Value.ToString() |
PatientGridView.DataSource = currentPatientList; |
GridGroupByExpression patientExpression = new GridGroupByExpression(); |
patientExpression.Expression = "FullName as FullName format \"{1}\" Group By OrderID"; |
PatientGridView.MasterGridViewTemplate.GroupByExpressions.Add(patientExpression); |
foreach (GridViewRowInfo row in PatientGridView.Rows) { |
if (someCondition == true) { |
row.IsExpanded = true; |
row.IsSelected = true; |
PatientGridView.GridNavigator.SelectRow(row); |
} |
} |
chartMarginsTitle1.Bottom = ((Telerik.Charting.Styles.
Unit)(resources.GetObject("chartMarginsTitle1.Bottom")));
private void GridView_MouseUp(object sender, MouseEventArgs e)
{
for
(int i = 0; i < GridView.Rows.Count; i++)
{
if (GridView.Rows[i].Cells["chk"].Selected == true) //CellElement.RowInfo.IsSelected)
{
//GridView.Rows[i].Cells["chk"].RowInfo.IsSelected = true;
GridView.Rows[i].Cells["chk"].CellElement.RowElement.IsSelected = true;
}
else //if (Convert.ToBoolean(GridView.Rows[i].Cells["chk"].RowInfo.IsSelected))
{
//GridView.Rows[i].Cells["chk"].RowInfo.IsSelected = false;
GridView.Rows[i].Cells[
"chk"].CellElement.RowElement.IsSelected = false;
}
}
i tried with mousedown and mouse click also. It is not working.
note: The checkbox column is added to grid programatically.
The operation completed successfully at System.Drawing.BufferedGraphicsContext.CreateCompatibleDIB(IntPtr hdc, IntPtr hpal, Int32 ulWidth, Int32 ulHeight, IntPtr& ppvBits) at System.Drawing.BufferedGraphicsContext.CreateBuffer(IntPtr src, Int32 offsetX, Int32 offsetY, Int32 width, Int32 height) at System.Drawing.BufferedGraphicsContext.AllocBuffer(Graphics targetGraphics, IntPtr targetDC, Rectangle targetRectangle) at System.Drawing.BufferedGraphicsContext.AllocBufferInTempManager(Graphics targetGraphics, IntPtr targetDC, Rectangle targetRectangle) at System.Drawing.BufferedGraphicsContext.Allocate(IntPtr targetDC, Rectangle targetRectangle) at System.Windows.Forms.Control.WmPaint(Message& m) at System.Windows.Forms.Control.WndProc(Message& m) at System.Windows.Forms.ScrollableControl.WndProc(Message& m) at System.Windows.Forms.ContainerControl.WndProc(Message& m) at System.Windows.Forms.Form.WndProc(Message& m) at Telerik.WinControls.UI.RadFormControlBase.WndProc(Message& m) at BPCommon.BPForm.WndProc(Message& m) at BPMonitorWall.BackgroundWnd.WndProc(Message& m) at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m) at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m) at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)