我在GridView中 var source = from p in allComments
select new {p.Img, p.Name, p.Comment};
GridView1.DataSource = source;
GridView1.DataBind();
把這個作爲數據源,我得到這個: The DataSourceID of 'Gr
我有這段代碼我想將數據綁定到網格視圖而不使用屬性。 public class UserTerritory
{
public string TerrId;
public string TerrName;
public string AccAccessLevel;
public UserTerritory(string _Terr
我試圖把它綁定到一個GridView .. var source = from p in allComments
select new { p.Img, p.Name, p.Comment };
GridView1.DataSource = source;
GridView1.DataBind();
所有評論都有 ,但它不會綁定導致我的GridView允許分
我正在使用網格視圖來顯示月份日曆。當我在日曆上觸摸日期時,通過更改背景和文本顏色突出顯示相應的單元格。一切都像魅力一樣,除非我選擇一個新的日期,我無法取消選中一個單元格。 當我點擊日期我記得的位置,所以,當我選擇了一個新的,我知道,我以前點擊: protected OnClickListener onClicThisMonthDate(final int position)
{
ret
更新:這是工作版本。 public DataSet GetObjects()
{
DataSet ds = new DataSet();
DataTable dt = new DataTable();
var source = from p in CommentsList
select new { p.Img, p.Name, p.Comment }