在Gridview中使用Autogeneratedcoulmn =" True" [英] Edition in Gridview with Autogeneratedcoulmn="True"

查看:78
本文介绍了在Gridview中使用Autogeneratedcoulmn =" True"的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

HI 

我必须使用网格视图,我想从数据库绑定数据

i have to user grid view and i want to bind data to it from database

我想要AutoGeneratColumn =" True"

i want to AutoGeneratColumn="True"

因为我现在不在查询中我的列 

becouse i dont now my columns in the query 

我也想编辑thos列,所以我怎么能这样做 

and i also want to edit thos columns also so how can i do that 

所以我有任何解决方案,我不得不提及我的列到网格视图,我可以编辑和删除网格视图中的数据

so i there any solution in which i dnt have to mention my columns to grid view and i can edit and delete data in grid view

plz帮助我

unseendreamzzz

unseendreamzzz

推荐答案

看不见,

欢迎来到MSDN论坛。

Welcome to the MSDN Forum.

首先,你的意思是
datagridview

gridview
 ?

First of all, do you mean the datagridview or gridview ?

根据我的理解,您似乎想要自动生成哟你的专栏名称。由于这些列是自动生成的,因此您没有准确的列名。如果是这样,我建议您尝试使用列索引来访问列。

Based on my understanding, it seems that you want to auto-generate your column name. And since the columns are auto-generated, you don't the exactly column names. If so, I suggest you try to use the column index to access the columns.

在datagirdview中,您可以使用列索引号和行索引号来访问该单元格。与gridview相同,但具体代码可能彼此不同。

In datagirdview, you can use the column index number and row index number to access the cell. And the same with gridview, but the specific code may be different to each other.

祝你好运,


这篇关于在Gridview中使用Autogeneratedcoulmn =" True"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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