| ' 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.