|
Hi Prabhat,
You can set that extra column visible = false with the current date value. Then when user check the particular checkbox, then you can reset the column visibility to true.
I hope this will help you.
Regards
|
|
|
|
|
Hi Aragon,
well thanx .This is just a trick.I need an event such that if we click on the cell of the grid,it should give response at the time we click on that cell.I think the way u suggested also works when we leave that cell.
Thank you.
|
|
|
|
|
I can't understand the "leave cell" term. Do you mean that that date column should be displayed in the place of the checkbox? you can use the ItemCreated event for registrations of the checkedchanged event of the checkbox and then apply your logic for this.
Regards
|
|
|
|
|
Hi Aragon,
I cant find any ItemCreated event.Will u please tell me the procedure.For ur confusion I have written my code below.
if (Convert.ToBoolean(e.FormattedValue) == true)
{
myDataGrid.Rows[e.RowIndex].Cells["Column2"].Value = DateTime.Now.ToString("MM/dd/yyyy");
}
else
{
myDataGrid.Rows[e.RowIndex].Cells["Column2"].Value = null;
}
Here,Column 1 should get populated when we check "column 1",lets say.
|
|
|
|
|
How about using CellContentClick event?
|
|
|
|
|
Hi d@nish,
It still doesnot work.Yes it gets populated with current date but not at the very moment we click on the checkbox.
|
|
|
|
|
It works absolutely fine for me. Can I have a look at your code?
|
|
|
|
|
I dont know whether it is my fault,but the column doesnot get populated immmediately after I click on the checkBox.my code is below:
if (Convert.ToBoolean(myDataGrid.Rows[e.RowIndex].Cells["Column1"].Value)== true)
{
myDataGrid.Rows[e.RowIndex].Cells["Column2"].Value = DateTime.Now.ToString("MM/dd/yyyy");
}
else
{
myDataGrid.Rows[e.RowIndex].Cells["Column2"].Value = null;
}
Here column 2 needs to get populated immediately after we click on column 1.
Thank u.
|
|
|
|
|
Hi in my c# application i want to transfer a large amount of files from one machine to another?
give me the fastest and effective mechanism for this
My small attempt...
|
|
|
|
|
Depends how big it is. If it's huge, the fastest may well be to put it on a portable HDD and walk to the other room. Otherwise, there are no tricks, you can transfer data as fast as your network allows, and no faster. Compress it first, is about the only thing I can suggest.
Christian Graus
Please read this if you don't understand the answer I've given you
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
i have seen different options, usual file transfer, webclient's download...
which is the effective one?
actually the the files i want to transfer will be shared in another machine
My small attempt...
modified on Monday, May 19, 2008 1:19 AM
|
|
|
|
|
I would like to know how I can determine the base of a literal value.
if I were to have the following code
< int Var = 20 >
How would I code it so that Var was equal to 20 base 16 and not 20 base 10?
I am thinking
int var = 20h;
but that seems a bit too simple to work.
Thank you in advance for your help.
Chris
modified on Sunday, May 18, 2008 7:44 PM
|
|
|
|
|
|
Thank you,
That is just what I needed!!
|
|
|
|
|
Can anyone suggest a good beginers book to programming that is for c#. I need one that teaches the logic behind programming.
|
|
|
|
|
I have used "Visual C# step by step" by Microsoft Press as well as "SAMs Teach yourself the C# Language in 21 Days".
Both are good books for teaching the syntax of C#.
I also have C# Programmers CookBook also from Microsoft Press. It is very helpful once you begin to actually program.
The logic behind programming is a little tricky, How deep do you want to go?
So far, I have found that the best way to learn is by doing. (or getting a BS in Computer Science.)
Chris
|
|
|
|
|
Beginners series book by Wrox would also be a good option to learn C#
|
|
|
|
|
Hello
I'm trying to print a Bitmap created from CopyFromScreen
private void pd_PrintPage(object sender, PrintPageEventArgs ev)
{
Point pos = new Point(10, 10);
ev.Graphics.CopyFromScreen(this.Location,pos,new Size(4000, 4000));
ev.HasMorePages = false;
}
Unfortunately this 1000 x 1000 image is printed in a square of 1,5 inch on my printer
How can I resize that capture to print to the paper size
In the same topic I do not understand why if I'm printing +/- the same area but using a DrawImage the resulting printed size seems ok ??
private void pd_PrintPage(object sender, PrintPageEventArgs ev)
{
Point pos = new Point(10, 10);
ev.Graphics.DrawImage(pb_zoom.Image,pos);
ev.HasMorePages = false;
}
|
|
|
|
|
Change the printer DPI AFAIK.
|
|
|
|
|
Hello
You know how to do it ?
|
|
|
|
|
I need to beef up my resume with some design patterns.
Which design patterns give you the most bang for the buck on your resume.
I know MVC and Singleton.
|
|
|
|
|
So when you tell your interviewer you know the MVC pattern, or the flyweight, or the abstract pattern, and he asked how you used it, you're gonna be stuck.
Reworking a CV for a particular role is ok, but beefing it up with stuff you have no commerical experience of is easily found out (IMHO) - I've tried it!!
The 'bible' is the GOF or Gang of Four[^]
Knowledge is hereditary, it will find its way up or down.
Luc Pattyn
and since what every time when i want to add button to this control one add two times
posted in C# forum
|
|
|
|
|
I've got every programming job I ever went for. I think one big reason is, I never lie. Lie, and you'll be found out. IF you don't know it, say so.
I wouldn't take a job that was only hiring if I knew certain design patterns ( although odds are that I do )
Christian Graus
Please read this if you don't understand the answer I've given you
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
Generally:
Put your name, address, phone number, and email address at the top, centered, perhaps bold.
Don't use graphics or fancy-schmancy typefaces.
Do use plain white paper.
|
|
|
|
|
Hello,
In deploying my application it is required that it attach a sql server database to the .net framwork sql engine because there is no servers in the client computer.
How can I accomplish this task (deploying the app with out having a full running instance of sql server)?
Thanks.
Dad
|
|
|
|