Raise Event Truedbgrid_AfterColUpdate in a different method

Posted by Donomar under C# on 10/28/2015 | Points: 10 | Views : 508 | Status : [Member] | Replies : 0
hi guys, i want to raise an event AfterColUpdate of True DB grid which has two parameters (object sender, C1.Win.C1TrueDBGrid.ColEventArgs) in a different method. i.e after i click some thing ,

code is here..
private void tdgEmployee_KeyDown(object sender, KeyEventArgs e)
{
MyeEventHandler handler = new MyeEventHandler(tdgEmployee_AfterColUpdate);
switch (tdgEmployee.Col)
{
case 1:
{
if (tdgEmployee.Col == 1 && e.KeyCode == Keys.F4)
{
this.SearchType = 1;
using (var form = new frmSearch(SearchType, tdgEmployee.Columns[1].Text))
{
var result = form.ShowDialog();
if (1 == 1)
{
string val = form.GetValue; //values preserved after close
tdgEmployee.Columns[1].Text = val;
// here i want to raise the event AftercolUpdate




Responses

(No response found.)

Login to post response