Month: January 2012

Capture DataGridView cell’s KeyPress event

Background It was a challenge for me to achieve this. So I took it and completed successfully. The question is what was the challenge.The challenge was to capture the KeyPress event of DataGridView Cell. Problem How would you achieve this?

Set ComboBox Item color

Background Not sure when this is useful, but its handy code to have when developing windows forms applications. The need can arise when we have to color code the data that we are displaying like status, severity, types, etc. As

Tagged with: ,

Visual Studio is not debugging

Background It was a very normal day of development for me. As we know that luck does not favors us always, so for me as well. I was doing some coding on my project and wanted to debug the code

Tagged with: ,

Enabling Session State in SharePoint 2010

Background Don’t know when this will be needed, but whenever required it important to know that how do we enable Session State in SharePoint 2010. Basically after enabling this we would be able to use session variables in our SharePoint

Tagged with: , ,

Web Part’s custom Properties in ToolPart

Its is there on my cards for long time to write on customizing Web Part’s properties. Now, finally I am writing. The basic idea behind this article is to add our own logic and controls in web part. There could

Tagged with: , , ,

Race Condition in SharePoint 2010

Background On the other day I have been told write a code on event handler to update fields value based on condition. I thought it would be very simple, but it was not. Though the implementation was very simple with

Tagged with: , ,

Get List name from SPLookupField

Background The other day I had given a task of getting the list name of the SPLookup field. At the first it was little difficult to digest. But then i google a lot for the same and gave up. Finally,

Tagged with: ,
Top