or
public void FillInvoiceTypeCombo(int EventTypeID)
{
object businessObject = null;
if (EventTypeID == GlobalConstants.ACCOUNTJOURNAL_EVENT_TYPE_ID_FOR_AP_INVOICE)
businessObject = VoucherDocumentTypeNameValue.GetVoucherTypeNameValue(GlobalConstants.ACCOUNTJOURNAL_EVENT_TYPE_ID_FOR_AP_INVOICE);
else
businessObject = VoucherDocumentTypeNameValue.GetVoucherTypeNameValue(GlobalConstants.ACCOUNTJOURNAL_EVENT_TYPE_ID_FOR_PO_WO_SERVICING);
cmbInvoiceType.DataSource = (VoucherDocumentTypeNameValue)businessObject;
cmbInvoiceType.DisplayMember = "Value";
cmbInvoiceType.ValueMember = "Key";
}
pub void SetControls()
{
// Fill DataSet ds with values from db
FillInvoiceTypeCombo(int.Parse(ds.Tables[0].Rows[0]["AccountJournalEventTypeID"].ToString()));
cmbInvoiceType.SelectedValue = int.Parse(ds.Tables[0].Rows[0]["InvoiceTypeID"].ToString());
}
private
void CmbMulCol_KeyDown(object sender, KeyEventArgs e)
{
if (e.KeyCode == Keys.Enter)
{
CmbMulCol.MultiColumnComboBoxElement.ApplyFilter();
if (CmbMulCol.EditorControl.CurrentRow != null && CmbMulCol.EditorControl.CurrentRow.Index >= 0)
{
if (CmbMulCol.EditorControl.CurrentRow.Cells["Title"].Value != null)
if (CmbMulCol.EditorControl.CurrentRow.Cells["Title"].Value.ToString() != "")
{
CmbMulCol.Text = CmbMulCol.EditorControl.CurrentRow.Cells[
"Title"].Value.ToString();
CmbMulCol.SelectedValue = CmbMulCol.EditorControl.CurrentRow.Cells[
"Id"].Value;
}
}
else
{
CmbMulCol.Text =
"";
}
if (CmbMulCol.SelectedValue == null)
CmbMulCol.Text =
"";
}
}
can you help me?
private
void
radButton1_Click(
object
sender, EventArgs e)
{
timer1.Enabled =
true
;
radLabel1.Visible =
true
;
radProgressBar1.Visible =
true
;
var f =
new
Form1();
f.changeRadGridview();
}
//Form 2 where I want to change the col name of the radgrid
internal void changeRadGridview()
{
radGridView1.Columns[2].HeaderText = "First Name";
radLabel5.Text = "hi";
}