void grid_BeganEdit(object sender, DataGridBeganEditEventArgs e)
        {
            if (e.Column == _colRegion)
            {
                var combo    = e.EditingElement as C1ComboBox;
                var userInfo = e.Row.DataItem as UserInfo;
                var country  = Country.GetCountryById(userInfo.CountryId);

                // restrict combo collection
                combo.ItemsSource = country.Regions;
            }
        }
Exemplo n.º 2
0
        void grid_BeganEdit(object sender, DataGridBeganEditEventArgs e)
        {
            if (e.Column == _colRegion)
            {
                var combo = e.EditingElement as C1ComboBox;
                var userInfo = e.Row.DataItem as UserInfo;
                var country = Country.GetCountryById(userInfo.CountryId);

                // restrict combo collection
                combo.ItemsSource = country.Regions;
            }
        }
 private void variableGrid_BeganEdit(object sender, DataGridBeganEditEventArgs e)
 {
     //MessageBox.Show("Began Edit..");// now you got focus to type
 }