圆柱也恰好在传播吗? [英] Do Columns also happen to propagate ?

查看:62
本文介绍了圆柱也恰好在传播吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用sql2005在VS2005上工作.
我有一个数据库表,该表通过datatable连接到gridview.我在此数据表中有4列.如果我编写以下代码进行绑定,则将绑定多少列.(简而言之,我的查询是:是仅传播行,还是列也恰好传播了?)

I am working on VS2005 with sql2005.
I have a database table which is connected to the gridview through datatable. I have 4 columns in this datatable. If I write the following code to bind, how many columns would be bound.(In short my query is : Is it only the rows that propagate, or do Columns also happen to propagate ?)

<div>
        <asp:GridView ID="GridView1" runat="server" Style="left: 336px; position: relative;top: 164px">
        <Columns>
        <asp:BoundField HeaderText="x" DataField="id" />
    <asp:BoundField HeaderText="y" DataField="id" />
        </Columns>
        </asp:GridView>
    </div>

推荐答案

shikhar gilhotra写道:
shikhar gilhotra wrote:

我在此有4列数据表.如果我编写以下代码进行绑定,则将绑定多少列.

I have 4 columns in this datatable. If i write the following code to bind, how many columns would be bound.


请参阅以下答案


See the below answer

shikhar gilhotra写道:
shikhar gilhotra wrote:

是仅传播行,还是列也恰好传播?

Is it only the rows that propagate, or are Columns also happen to propagate ?



取决于 GridView.AutoGenerateColumns属性 [ ^ ]

行根据db中的数据加载值.

试试自己,这很容易.



Depends based on GridView.AutoGenerateColumns Property[^]

Rows loading values based on data from db.

Try yourself which is easy one.


这篇关于圆柱也恰好在传播吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆