|
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
|
|
|
|
|
Hi,
I want to build an application that will enable the user to create chart of accounts in nXn(n by n) tree structure. I want to use data structures to do so. The user should be able to not only add new nodes to the tree but also manipulate the data in the tree using references to parent and child nodes(Traversing). Please, help me and provide a solution ASAP.
Thank You.
HASAN ABBAS
|
|
|
|
|
Basically, i would just use the treeview.
But if not have a struct or class for your node, and within it, have a list of itself:
class Node
{
List<node> nodeCollection;
...
}
My current favourite word is: Bauble!
-SK Genius
|
|
|
|
|
I implemented a simple AVL-tree (that are balanced trees) - the code will only compile in .net 3.5 (because I use some simple LINQ to object statements and a lot of var-declerations) but you should be able to modify it to .net 2.0 without problems (.net 1.1 is not that easy because I use generics for the tree-structures)
I only commented the code in german but I can send you the files if you PM me your adress.
|
|
|
|
|
Hi,
Even I am working on similar tree-project. I have already performed lot of research on it but not getting some proper result.
Can you please mail your code on ujjavalmodi@gmail.com
It would be a great help.
Thanx in advance !
Regards,
Ujjaval Modi
Manpower moves wrenches, horsepower moves cars, and the power of the mind moves the world.
|
|
|
|
|
Hey!! I'd love to have ur code. My email ID is hasanabbas19@hotmail.com.
Thanks.
HASAN ABBAS
|
|
|
|