如何查看grvFile.CurrentRow.Cells["xx"] 中的项?
grvFile.CurrentRow.Cells["I_FromDesc"]如何查看grvFile.CurrentRow.Cells["xx"] 中的项?xx有哪些?
用程序列出来 --------------------编程问答-------------------- ?数据源有哪些列就有哪些吧。。 --------------------编程问答-------------------- Just for Guess
foreach(object item in grvFile.CurrentRow.Cells)
{
debug.writeline(item.Name)
}
I don't know what the data type in the collection --------------------编程问答--------------------
xx是数据源中的列名,要取相应Cell的值的话,在后面加上.Value。 --------------------编程问答--------------------
string CELLS = "";
foreach (DataGridViewColumn dgc in dgv.Columns)
{
CELLS += dgc.DataPropertyName.ToString() + ",";
}
补充:.NET技术 , C#