I think this is what you are looking for:
dataGridView.Columns[e.ColumnIndex].Name == "ColumnName"
or
DataGridViewCell cell = this.dataGridView[e.ColumnIndex, e.RowIndex];
I hope that helps!
i love chocolate
I'm developing a Windows application which starts by populating one object of type Meeting. It's set up as follows:
private static Meeting masterMeeting;
//get meeting data and populate masterMeeting object.
masterMeeting = rtd.InitialiseMeetingData(selectedLocation);
This sucesfully...
Hi, I've designed an object which has several text properties and I'd like to show a list of these objects (in a Windows application) where each one acts as a button and also has an image shown next to it which will show if it is old, active, or pending. I don't think that the ListView does what...
I have a stored procedure which is called from a web site at say every 2 minutes which returns a set of rows of data about entries in a race. If one of the fields in any of the entries is set to 1 rather than 0 I would like to perform the following actions:
1. Get the related id for the entry...
Hi,
I have had a web service running successfully on our test server for several weeks with no problems - it builds pdf docs out of data once per day. I moved it to the live sever yesterday and I keep getting an error message when it tries to create a new PDF file in the specified folder. I am...
Hi, I am having to do some calculations on some data in an sql database and I haven't had to do anything like this before so I am not sure that I am doing things the best way - in fact I'm sure I'm not! I'm hoping someone out there can give me some advice so that I can improve.
I need to...
Thanks for all the help! I ended up finding another example of the same thing, tried it, and hey presto it now works perfectly. Here's the code in case anyone else needs it:
public string Serialize(object objName)
{
MemoryStream stream = null;
TextWriter writer = null...
I am developing a web service which will output a string which the user of the web service can then convert to xml and do whatever they like with it! I am serializing my object then returning the string and it's all working fine. However, I have built a test website to access the webservice and...
I have a view which gives me a list of data - here's the code:
CREATE view iVRunners
as
select r.racecardid, r.trackid, r.coursesurface, e.entryid, e.programNo
from racecards r, schedules s, entries e
where r.racedate = s.mDate
and e.racecardid = r.racecardid
group by...
You could use Windows Scheduler (from Control Panel) to automatically run the application every 5 days from the 1st of the month - I'm not sure whether you could do the second run on the 15th for 5 days within the same schedule, but if not I'd imagine setting up a second schedule event would...
Yaaaaaayy, finally got the time to give this a go and I've now got a page working locally with an image fading in when it loads, and fades out when I click on it, and i've got it working in IE and Firefox. Here's the code:
var timeinterval = 40;
var opacity = 0;
var fadeInId = 0;
var fadeOutId...
Sorry Dan, I am up to my neck in work right now so haven't tried it yet as that's part of a background project. Should be trying it his coming weekend so will let you know. Thanks for asking!
i love chocolate
Jeff i've been using this forum for years and people like you make it very intimidating for beginners to post questions. I am not a beginner but do not have much experience of javascript and i know there must be plenty of examples of this script out there I just can't seem to find them so I...
Hi Dan,
Thanks for the post, i looked at the lightbox stuff which is fantastic but i'm really just after a script example of a fade transition if anyone has one?
i love chocolate
I'm building a web page to show photo albums and there is a next and back button which changes the big image to the next one in the list. However, when you change from say a portrait to a landscape photo the transition can look very clunky. Here's the url...
Hey theniteowl, paranoid? Surely not ;) I didn't use your code because it's in classic asp and I'm using asp.net - i'm not quite sure if response.write works with .net??? Can you enlighten me on this? Anyway I'd be really interested to know how you can preload and reference each image as...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.