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 :-)
Monday, July 17, 2006
howto make usage of Gridview DateKeyNames
at 10:14 AM 0 comments Posted by roni schuetz
Labels: .net, code sample
Friday, July 14, 2006
ASP.NET 2.0 GridView FormatStrings
>> copied from http://geekswithblogs.net/michelotti/archive/2006/02/25/70708.aspx
You can supply format strings to the columns in your GridView by setting the DataFormatString property of the column to something like this: “{0:d}”. However, you may have run across a case where you set this property and the system does not recognize the format string you provided. To make this work, you need to set the HtmlEncode property of that column to “False”. Then the DataFormatString will act as expected when displayed at run-time.
more data is available over here:
http://weblogs.asp.net/rajbk/archive/2005/10/31/429090.aspx
at 11:29 AM 0 comments Posted by roni schuetz
Sunday, July 09, 2006
How to get rid of Restart Now / Restart Later
Start / Run / gpedit.msc / Local Computer Policy / Computer Configuration / Administrative Templates / Windows Components / Windows Update / Re-prompt for restart with scheduled installations
at 1:38 PM 0 comments Posted by roni schuetz