|
if (Convert.ToBoolean(dgvSecurityPricing.Rows[e.RowIndex].Cells["AcceptBestPrice"].Value) == CheckState.Checked)
I doubt CheckState will be able to equate a boolean any better than object would.
|
|
|
|
|
J4amieC wrote: I doubt CheckState will be able to equate a boolean any better than object would.
Ummm - but CheckState.Checked is a boolean. Have I missed some subtlety in the original post?
|
|
|
|
|
Pete O'Hanlon wrote: but CheckState.Checked is a boolean
I dont think so, CheckState[^] is an enumeration.
I might be wrong.
|
|
|
|
|
J4amieC wrote: I might be wrong.
Nope - you're not. Damn, I really need to get more sleep tonight.
|
|
|
|
|
Pete O'Hanlon wrote: Damn, I really need to get more sleep tonight
Yes, you are not yourself today.
|
|
|
|
|
I made the mistake of going food shopping for Christmas late last night and it was insane. So many people, so little food.
|
|
|
|
|
and have you done as suggested and debugged to see what the actual type of dgvSecurityPricing.Rows[e.RowIndex].Cells["AcceptBestPrice"].Value is?
|
|
|
|
|
hi friend,
i have a datagrid. i m serching data with some textbox parameter. i want to edit it.
1. when i edit the cell and check the perticular row checkbox and click on edit button it should save into the database.
Can u guys help me out.
Vinod Kumar Gupta
|
|
|
|
|
SqlCommandBuilder scb = new SqlCommandBuilder(myda);
myda.Update(mydt);
myda is your dataadapter
mydt is your DataTable
|
|
|
|
|
Hi guys,
I have a datagridview. i can delete all rows, bud not the last row, i mean i can't never delete wen there is only one row remaind.
any idea how to fix this?
thanx.
|
|
|
|
|
hi dear,
what u r using to delete in GV. like checkbox or button. could tell me i can do something. if you clear this
thanks
"Good Thing Goes With Good People..."
|
|
|
|
|
Hi PTells,
thanx for your response, i m using a buttom for deleting.
|
|
|
|
|
Hi,
If you are writing your code to delete rows in datagridview's SelectionChanged event, then you will face this problem.
try writing the deletion code in datagridview's CellClick event.
Regards,
Ujjaval Modi
Manpower moves wrenches, horsepower moves cars, and the power of the mind moves the world.
|
|
|
|
|
hi,
How do i handle refresh event of web browser on a windows form?
Thanks & Regards,
Pramod
"Everyone is a genius at least once a year"
|
|
|
|
|
how to check the box in the windows service containing "Allow System to interact with desktop" via c# code?Where should this method be kept?If we put this into the methods such as BeforeInstall() or AfterInstall(),Do we need to call it in our Service.cs file??
Please help me.
Thank u.
|
|
|
|
|
It is not possible with .NET. AFAIK, it's not even possible on the newer Windows versions.
xacc.ideIronScheme a R5RS/R6RS-compliant Scheme on the DLR
The rule of three: "The first time you notice something that might repeat, don't generalize it. The second time the situation occurs, develop in a similar fashion -- possibly even copy/paste -- but don't generalize yet. On the third time, look to generalize the approach."
|
|
|
|
|
Well Leppie,thanks for the reply...
but i think that it is possible to check the box containing "Allow System to interact with Desktop" via code.Here is the code...
RegistryKey ckey=Registry.LocalMachine.CreateSubKey(@"SYSTEM\CurrentControlSet\Services\",this.ServiceName);
if (ckey != null)
if (ckey.GetValue("Type") != null)
ckey.SetValue("Type", ((int)ckey.GetValue("Type") | 256));
This code runs well and the box is checked,when I call it in myService.cs file.But I think that I got to do this in projectinstaller.cs file at the method OnBeforeInstall() and OnAfterInstall() accordingly.But my problem is that its not working when I put inside above methods.Could anybody suggest me the Right way??
Any type of advice is welcome.
thank u.
|
|
|
|
|
how to check the box in the windows service containing "Allow System to interact with desktop" via c# code?Where should this method be kept?Is we put this into the methods such as BeforeInstall() or AfterInstall(),Do we need to call it in our Service.cs file??
Please help me.
Thank u.
|
|
|
|
|
Don't know, but have you tried a google or msdn search?
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
|
|
|
|
|
I already got the solution.I get to change the value of registry and set it to 272 and all i got to do is to restart the computer.
anyway thanks.
|
|
|
|
|
|
Reflection, I guess.
Christian Graus - Microsoft MVP - C++
"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 )
|
|
|
|
|
Something like the following should do it for you...
ArrayList namespaces = new ArrayList();
foreach(Type t in System.Reflection.Assembly.GetExecutingAssembly().GetTypes())
{
if(!namespaces.Contains(t.Namespace))
{
namespaces.Add( t.Namespace );
}
}
--
Cheers,
Gary
http://www.garyshort.org
|
|
|
|
|
Try this: Assembly.GetName() Examine the returned object to get the data you need
|
|
|
|
|
Through reflections.
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
|
|
|
|