Monday, July 17, 2006

howto make usage of Gridview DateKeyNames

if (e.Row.RowType == DataControlRowType.DataRow)
{
string keyStringValueA = GridView1.DataKeys[e.Row.RowIndex].Values["YourDataKeyName"].ToString();
string keyIntegerValueB = GridView1.DataKeys[e.Row.RowIndex].Values["YourDataKeyName"].ToString();

int n = int.Parse(dkk);

once you know it its simple and works fine :-)

No comments:

Shared Cache - .Net Caching made easy

All information about Shared Cache is available here: http://www.sharedcache.com/. Its free and easy to use, we provide all sources at codeplex.

Facebook Badge