Friday, July 31, 2009

Silverlignt How To Get The Cell Content Of The DataGrid When AutoGenerateColumns Set True

private void dg_SelectionChanged(object sender, SelectionChangedEventArgs e)
{
           TextBlock tb = dg.Columns[0].GetCellContent(e.AddedItems[0]) as TextBlock;
           //tb.text will hold the Column Content
}


No comments: