gridview column 0 column1 boundfield [英] gridview column 0 column1 boundfield

查看:84
本文介绍了gridview column 0 column1 boundfield的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好



当你将gridview拖到它生成的表格时





Column0 Column1 Column2



abc abc abc

abc abc abc





当你创建自己的专栏时Boundfield



它有DataBound





请澄清2 ie( abc 数据包)之间的区别。





我正在使用 6列创建一个gridview,只需点击一下按钮就可以填充commnads,数据源无



如何用
建立列


1 数据来源: :无



2, autogenerate为True

解决方案

1)当您拖动网格视图并使用数据表数据从数据库绑定它小号源无论你使用什么,它都会自动绑定其中的列数和行数。



2)当你在gridview中手动创建列时如果 Autogeneratecolumns property true ,那么它也会显示您手动创建的列和数据源列。



如果你设置 Autogeneratecolumns property false 那么它只显示手动创建的列。

Hello

When you drag the gridview unto a form it generates


Column0 Column1 Column2

abc abc abc
abc abc abc


when you create your own column Boundfield

it has DataBound


Pls clarify the difference between the 2 ie (abc and Databound).


I'm creating a gridview with 6 columns which will be populated by commnads from the click of a button, with Data Source None.

how do I build the columns with

1 Data Source :: None

2, autogenerate is True

解决方案

1) When you drags grid view and bind it from database with data table or data source whatever you used than it binds automatically with number of columns and rows in it.

2)When you create columns manually in gridview and if Autogeneratecolumns property true then it shows your manually created columns and data source column as well.

if you set Autogeneratecolumns property false then it shows only manually created columns.


这篇关于gridview column 0 column1 boundfield的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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