|
Member 590310 wrote: i have some data in grid which i want to write to database table on clicking a comand button...tell me esay way to do that
What is the source of data that you are showing in gridview ? Read those data and put into the database. Or your problem is something else ?
Abhijit Jana | Codeproject MVP
Web Site : abhijitjana.net
Don't forget to click "Good Answer" on the post(s) that helped you.
|
|
|
|
|
reading data from table and showing it in grid...nw after making some changes in data i want to put that data back to table...
|
|
|
|
|
read the data from the grid
by using this code
gridname.row[index].cell[i].text
and make a query and insert into the table.
Thanks and regads,
Amit Patel
|
|
|
|
|
|
Hi,
I have gridview which contains Column type DataGridViewButtonColumn. I want to set caption of button in two line like
Save
Close.
I have tried to set caption using "Save\nClose" ,"Save\r\nClose" and "Save\f\nClose", but not worked .Please tell me how to set caption using new line?
Regards,
rajesh
rajesh
|
|
|
|
|
Rajesh_K_Sharma wrote: Subject: How to add new line in cell gridview in desktop application
Then why are you asking in ASP.NET Forum ?
Sorry My BAD. I thought I am on ASP.NET Forum. Sorry Again !!!
Abhijit Jana | Codeproject MVP
Web Site : abhijitjana.net
Don't forget to click "Good Answer" on the post(s) that helped you.
|
|
|
|
|
Hi,
I am new to how to recording video using DirectX in windows application.How can the size of avi be reduced while recording video using DirectShow Library.
Thanks
|
|
|
|
|
What size, the video size (dimensions) or the filesize?
|
|
|
|
|
Hi,
By Size I mean the size of the File like recording 1 minute video produces AVI file of 1GB .I want to compress the File Size.
Thanks
|
|
|
|
|
Hello,
I am looking for a software that can generate Activity diagram from an existing C# source code. I found many solution which can only do round trip engineering with Class Diagram. But I need an Activity Diagram generator. Would anyone please tell me if there is one ?
Regards
|
|
|
|
|
Have you checked with EA ?
Abhijit Jana | Codeproject MVP
Web Site : abhijitjana.net
Don't forget to click "Good Answer" on the post(s) that helped you.
|
|
|
|
|
Rational rose is a software used to generate the UML activity Diagram based on your coding sturcture
|
|
|
|
|
I tried to write a file asynchronously but I can not do it. Could you help me on this issue ?
any recommendations are strongly appreciated
|
|
|
|
|
What is the error you are getting?
|
|
|
|
|
Not without seeing your code and getting an explanation of the problem you're having.
|
|
|
|
|
sorry for unclear explanation of my problem.
the code that I have try is below:
delegateGetInputReportData getInputReportDelegate = null;
getInputReportDelegate = new delegateGetInputReportData(myAccessForm);
base.Invoke(getInputReportDelegate,/*args*/value);
a new delegate method is created on each data receive event.
in myccessForm I try
TextWriter tx = new StreamWriter("Data.txt");
tx.WriteLine(index +" " + s1.ToString() + "0" + s2.ToString() + "\t\t" + str + "\t\t" + p.ToString());
but it causes an exception that file is used by another program I tried to solve problem by using mutex but It does not work.
|
|
|
|
|
Dear Sirs,
I searched online and the forums and can't find the answer to my question. I would like my program to hide its console window in a managed way, but only AFTER allowing the program to output there. Basically, it goes like this:
public .ctor()
{
_Init();
_Open_SS();
System.Console.Hide();
}
So, if anyone knows how to do this in a MANAGED-ONLY context (I don't want to use DllImport("Kernel32.dll")]extern int FreeConsole(); ). Thanks in advance for your help!!
In Christ,
Aaron Laws
http://ProCure.com
|
|
|
|
|
I know you said Managed code, however I don't see any way of avoiding it as the console is an unmanaged host for the application output. However I would recommend
[DllImport("user32.dll")]static extern bool ShowWindow(IntPtr hWnd, int nCmdShow);
rather than FreeConsole as you don't really want to detach the process from the console, just hide the console. Well, having said that, maybe you do, but I wouldn't.
If you have knowledge, let others light their candles at it.
Margaret Fuller (1810 - 1850)
www.JacksonSoft.co.uk
|
|
|
|
|
I use FreeConsole for applications than can be run in either console or GUI mode.
|
|
|
|
|
Hey,
I'd like a control to stretch to it's parents' size in several steps. I have accomplished this, but the result isn't statisfying. This is because im using (Control.) DrawToBitmap in a for loop, which builds up memory pretty fast. I can solve this by using GC.Collect(), but that doesn't look very professional. Thus i'm looking for an alternative, that makes a control stretch in several steps (as in an animation) without flickering. (Perfectly smooth) I'd appreciate some ideas on how to solve this problem
Thanks in advance,
Zaegra
Motivation is the key to software development.
|
|
|
|
|
Dear Mr. Viagra,
There might be many ways to do this. Is this in the on-paint method of said control, or is this a child control? Perhaps you're just making a bitmap show up on your Panel , and it should change size dynamically. Well, here's a go: Create a Control : Panel , and override its OnPaint method to do something like this:
e.Graphics.Clear(BackColor);
e.Graphics.DrawImage(image, new System.Drawing.Rectangle(0, 0, ClientSize.Width-1, ClientSize.Height-1)); which will automatically scale. (Be sure to override OnResize with Invaliate(true); to make sure that a full redraw is done.) Then, in the parent form (with the custom Control:Panel as a child control), run something like:
for (int a = 0; a < 500; a++)
Control.Size = new System.Drawing.Size(a,a);
There's an attempt to answer the question, but you have given VERY little information.
Warning:I have not tested any of the code above, so it might not work.
Good luck!
In Christ,
Aaron Laws
http://ProCure.com
|
|
|
|
|
LimitedAtonement wrote: Dear Mr. Viagra
Well, that's not really what i'm trying to accomplish. This stretches the entire control, and thereby changes the interior arrangement of the items (e.g a listview). It has to look like the control "freezes", then stretches to it's parent size and when it has reached that size it can return to it's old size. Don't ask me why, it's just a fancy GUI animation. And I know i can do this by using DrawToBitmap (which basically makes a screenshot of the control) and stretching that. But when I do that, the animation flickers because I have to use the .Update() method on the control. Any more idea's?
Thanks for your reply though, it gave me some idea's , but just not enough
Greets,
Zaegra
Motivation is the key to software development.
|
|
|
|
|
|
LimitedAtonement wrote: Dear Mr. Viagra,
That's quite the typo.
|
|
|
|
|
What sort of controls you are talking about ?
Are you talking about visual elements? How about Anchor / Dock properties. Have you tried them ?
|
|
|
|