Velocity Reviews

Velocity Reviews (http://www.velocityreviews.com/forums/index.php)
-   ASP .Net Datagrid Control (http://www.velocityreviews.com/forums/f60-asp-net-datagrid-control.html)
-   -   assign value to a cell referencing by column name in itemdatabound (http://www.velocityreviews.com/forums/t762791-assign-value-to-a-cell-referencing-by-column-name-in-itemdatabound.html)

gane 06-01-2006 03:48 PM

assign value to a cell referencing by column name in itemdatabound
 
Hi,

I would like to assign a value to a datagrid item using the column name
instead of using something like e.item.cell[1].text in itemdatabound

eg:
DataRowView rv = (DataRowView)e.Item.DataItem;
string strLocation = Convert.ToString(rv.Row["locationptr"].ToString())

I used dataitem to fetch, but i donno how to assign some value.

Thanks
Gane






All times are GMT. The time now is 06:29 PM.

Powered by vBulletin®. Copyright ©2000 - 2014, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.