Silverlight and DataGridColumn type
I have a datagri开发者_高级运维d with DataGridTemplateColumn and DataGridTextColumn in it. In my backend code I'm looping thru the datagrid.Columns Collections to see if the column has a binding or not. I need to know How can I determine if the Columns type is of DataGridBoundColumn or NOT?? Any ideas which method/property does that.
Found the answer:
foreach (DataGridColumn col in this.Columns)
{ if (col is DataGridBoundColumn) { DataGridBoundColumn = column = col as DataGridBoundColumn; } }
精彩评论