private void gridview_SelectionChanged(object sender, EventArgs e) { var view = (KryptonDataGridView)sender; if (view.Name.Contains("monster")) { Utillities.GridSelectionChanged(monster_gridView, txtbox_monsterDetails, "monster"); } else if (view.Name.Contains("spell")) { Utillities.GridSelectionChanged(spell_gridView, txtbox_spellDetails, "spell"); } else if (view.Name.Contains("item")) { Utillities.GridSelectionChanged(item_gridView, txtbox_itemDetails, "item"); } }