开发者

Grid View Autogenerated Column Data Type

开发者 https://www.devze.com 2023-02-15 19:41 出处:网络
I am using asp.net grid view which has is populated dynamically that means it has auto generated columns at run time.

I am using asp.net grid view which has is populated dynamically that means it has auto generated columns at run time. I just want to know db type of these columns whether a column is text , date or int type.

Please write back to me if any body has done this.

Regards 开发者_如何转开发SYED


When the database contents are re-bound to the grid view from the database, they are always Strings. Even if you have a numeric or date column, the data is rebound as a String.

This method isn't suitable for discovering the datatypes of your database table(s).

0

精彩评论

暂无评论...
验证码 换一张
取 消