怎么把ACCESS中的数据转成Datatable-CSDN论坛
1个回答
展开全部
GridView gv = new GridView();
DataTable <a href="https://www.baidu.com/s?wd=dt&tn=44039180_cpr&fenlei=mv6quAkxTZn0IZRqIHckPjm4nH00T1d9ryDYnhFBPjbduWczPvcv0ZwV5Hcvrjm3rH6sPfKWUMw85HfYnjn4nH6sgvPsT6KdThsqpZwYTjCEQLGCpyw9Uz4Bmy-bIi4WUvYETgN-TLwGUv3EnW0LPH63rjmzP10snHnkPHcvr0" target="_blank" class="baidu-highlight">dt</a> = new DataTable();
<a href="https://www.baidu.com/s?wd=dt&tn=44039180_cpr&fenlei=mv6quAkxTZn0IZRqIHckPjm4nH00T1d9ryDYnhFBPjbduWczPvcv0ZwV5Hcvrjm3rH6sPfKWUMw85HfYnjn4nH6sgvPsT6KdThsqpZwYTjCEQLGCpyw9Uz4Bmy-bIi4WUvYETgN-TLwGUv3EnW0LPH63rjmzP10snHnkPHcvr0" target="_blank" class="baidu-highlight">dt</a>.Columns.Add(new DataColumn());
gv.DataSource = <a href="https://www.baidu.com/s?wd=dt&tn=44039180_cpr&fenlei=mv6quAkxTZn0IZRqIHckPjm4nH00T1d9ryDYnhFBPjbduWczPvcv0ZwV5Hcvrjm3rH6sPfKWUMw85HfYnjn4nH6sgvPsT6KdThsqpZwYTjCEQLGCpyw9Uz4Bmy-bIi4WUvYETgN-TLwGUv3EnW0LPH63rjmzP10snHnkPHcvr0" target="_blank"class="baidu-highlight">dt</a>;
DataTable dt2 = (DataTable)gv.DataSource;
DataTable <a href="https://www.baidu.com/s?wd=dt&tn=44039180_cpr&fenlei=mv6quAkxTZn0IZRqIHckPjm4nH00T1d9ryDYnhFBPjbduWczPvcv0ZwV5Hcvrjm3rH6sPfKWUMw85HfYnjn4nH6sgvPsT6KdThsqpZwYTjCEQLGCpyw9Uz4Bmy-bIi4WUvYETgN-TLwGUv3EnW0LPH63rjmzP10snHnkPHcvr0" target="_blank" class="baidu-highlight">dt</a> = new DataTable();
<a href="https://www.baidu.com/s?wd=dt&tn=44039180_cpr&fenlei=mv6quAkxTZn0IZRqIHckPjm4nH00T1d9ryDYnhFBPjbduWczPvcv0ZwV5Hcvrjm3rH6sPfKWUMw85HfYnjn4nH6sgvPsT6KdThsqpZwYTjCEQLGCpyw9Uz4Bmy-bIi4WUvYETgN-TLwGUv3EnW0LPH63rjmzP10snHnkPHcvr0" target="_blank" class="baidu-highlight">dt</a>.Columns.Add(new DataColumn());
gv.DataSource = <a href="https://www.baidu.com/s?wd=dt&tn=44039180_cpr&fenlei=mv6quAkxTZn0IZRqIHckPjm4nH00T1d9ryDYnhFBPjbduWczPvcv0ZwV5Hcvrjm3rH6sPfKWUMw85HfYnjn4nH6sgvPsT6KdThsqpZwYTjCEQLGCpyw9Uz4Bmy-bIi4WUvYETgN-TLwGUv3EnW0LPH63rjmzP10snHnkPHcvr0" target="_blank"class="baidu-highlight">dt</a>;
DataTable dt2 = (DataTable)gv.DataSource;
本回答被提问者采纳
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询