【发布时间】:2013-05-12 12:46:30
【问题描述】:
我无法从 Apache-Cassandra 获取显示在 gridview 上的行键值。 一些代码...
public class PacienteEntity
{
public int key { get; set; }
public string name { get; set; }
}
var records = (from x in context.ColumnList
where x.ColumnFamily == "paciente"
select x.ToObject<PacienteEntity>());
//remove null rows
var filteredRecords = records.ToList().Where(i => i != null);
dgView.DataSource = filteredRecords.ToList();
dgView.DataBind();
即使使用 autoGenerateColumns,rowkey 值也等于 0 欢迎任何帮助!
【问题讨论】: