开发者

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; } }

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜