<telerik:RadNumericUpDown Value="{Binding Path=CurrentOEMOriginalQuantity, ValidatesOnDataErrors=True}" Grid.Row="1" Grid.Column="2" Margin="0,0,2,0" NumberDecimalDigits="0" UpdateValueEvent="PropertyChanged" ShowButtons="False" NullValue=""/>public short? CurrentOEMOriginalQuantity { get { if (adapter == null || adapter.CurrentOEMOriginalCost == null) return null; else return adapter.CurrentOEMOriginalCost.QuantityOnHand; } set { if (adapter == null || adapter.CurrentOEMOriginalCost == null) return; adapter.CurrentOEMOriginalCost.QuantityOnHand = value; RaisePropertyChanged(() => this.CurrentOEMOriginalQuantity); } }Hi, i've a RadGridview which populates its datasource from a dataset.
i just need to get selected item's 2nd row's value.
(guess need to write in MyGrid_SelectionChanged event.)
How can i achieve this ?
Thanks for ur help
Best regards..
I'm using the radGridView and it's hierarchy feature. Because of large amount of data, I fetch data first to the upper/first layer of radGridView with empty sub data object to provide +-mark of beginning of each row (identify that there are sub data available). I'm using the Radgridview.ItemsSource property to add data to the grid.
But now I have problem when expanding one of the row and dynamically add the dataobject to the selected childgrids.itemssource, it's not showing. I'm using following code to add data to the selected childgrid
private void alarmsTbl_DataLoading(object sender, Telerik.Windows.Controls.GridView.GridViewDataLoadingEventArgs e) { GridViewDataControl dataControl = (GridViewDataControl)sender; if (dataControl.ParentRow != null) { AlarmsServiceReference.AlarmDetails[] groupDetails = alarmsClient.GetAlarmGroupDetails(alarmsTableDef.DBType, alarmsTableDef.ConnectionString, sql); dataControl.ItemsSource = groupDetails; } }
How I can dynamically add dataobject to the expanded childgrid?