簡體   English   中英

訪問 c# 中的子對象數組

[英]Accessing array of child objects in c#

我在 datagridView - CellPaintingEvent 中有如下場景

object cellValue = e.FormattedValue;

通過上面的序列,我有時會得到一組值,即:

cellValue = system.object[];

請讓我知道如何訪問所有這些子對象的值。

提前致謝

CellPainting 事件適用於具有單個值的單個單元格。 FormattedValue 不是數組。 你查過 MSDN 嗎? 他們有一些示例如何使用事件和 DataGridViewCellPaintingEventArgs:

DataGridViewCellPaintingEventArgs

格式化值

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM