|
Hi,
I want to add Rows bottom of the Grid but for some reason it goes here and there or always last but one.
MyGrid.Rows.Add();
Thanks
|
|
|
|
|
why do you want to add a row to the DGV?
You only get that output if you add records to your database, refresh, and display the data in DGV.
You have to remember that you dont edit the DGV, you edit your database!
You use the DGV to display data.
You can add and delete rows but not like you ask here, got it?
nelsonpaixao@yahoo.com.br
trying to help & get help
|
|
|
|
|
Anyway at last i got the solution !!
I just built a Data Table that is assigned to Data Grid as a Data Source so whenever i make changes in Data Table things are getting affected.
|
|
|
|
|
Hi all,
I want to call a crystal report from C# application
can i know the syntax and process please
waiting for your reply.
|
|
|
|
|
Hema Bairavan wrote: process please
Go to a bookstore and get a C# and crystal report book.
|
|
|
|
|
mr Navneeth,
I KNOW TO DO THAT
, it should be done by using the viewer,
but it is not working?
do you know how to do that?
|
|
|
|
|
Well why don't you post some code then.
Say what you expect it to do and what it actually does.
Do you get errors?
If so where and what errors?
...
The way you posed your question is open for the interpretation that you are asking us to completely explain how to show a CR with code and all.
At the very least you have to show that you actually tried it on your own.
|
|
|
|
|
Hema Bairavan wrote: I KNOW TO DO THAT
Well, what book did you buy?
Here is a walkthrough, enjoy
I are troll
|
|
|
|
|
it not hard, i thought it was. Almost the same way you do when display data in DGV.
You have to remember that the DGV accepts any kind of dataset regardless of the data scheme, you know? with CR you have to create a dataset (design time) that has a scheme that is 100% of the output of your Store Procedure (i trigger SP).
If you know to display data in a DGV from a triggered procedure is the same.
Use the cristalreportviewer like the DGV.
add cristalreportviewer to application, create cristalreport and dataset in designtime.
i assually run DGV and cristalreportviewer together
i can post the little code later, but is not about it.
nelsonpaixao@yahoo.com.br
trying to help & get help
|
|
|
|
|
Who has the code generator? Can generate C # code
|
|
|
|
|
1SmartCoder is an object to simple mapping (O/R mapping) code generation tool that lets you map and generate well designed Asp.net business, data objects and web pages.
Map objects and embed SQL and business rules
Generate .NET components and DotNetNuke Module in C# with a clean design
Customizable code generator with powerful Template IDE
Extendable special business rules generation with Tag in mapped objects and their attributes.
Support Microsoft Visual Studio 2005 and DotNetNuke 4.x
Do round trip development without losing any of your code changes
Generate common Membership web application with Department, User, Group/Role, Resource/Permission managetment, with it you can focus on the business logic development without trouble permission management.
more: http://www.1smartengine.com
|
|
|
|
|
tz_soul wrote: Who has the code generator?
The (working) brain.
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
The computer.
Of one Essence is the human race
thus has Creation put the base
One Limb impacted is sufficient
For all Others to feel the Mace
(Saadi )
|
|
|
|
|
tz_soul wrote: One Who has the code generator, ? Ccan generate C # code.
Code Quote of the day.
The word "politics" describes the process so well: "Poli" in Latin meaning "many" and "tics" meaning "bloodsucking creatures."
जय हिंद
|
|
|
|
|
Who has the code generator?
You do. For C#, it's CSC.exe. You could always build your apps using the CodeDOM, but it's easier with csc.exe.
|
|
|
|
|
Pete O'Hanlon wrote: You could always build your apps using the CodeDOM, but it's easier with csc.exe.
Cmon Pete, be a man.
The word "politics" describes the process so well: "Poli" in Latin meaning "many" and "tics" meaning "bloodsucking creatures."
जय हिंद
|
|
|
|
|
string[] observations =new string[] {"walk","shop","clean"};
startProbability = new double[] { 0.6, 0.4 };
transitionProbability = new double[,]{{0.7, 0.3},{0.4, 0.6}};
emissionProbability = new double[,] {{0.1,0.4,0.5},{0.6,0.3,0.1} };
problem = new int[] { 0, 1, 2 };
these are the assigned values.. how to get these values as an input from the user... kindly help me out
|
|
|
|
|
You'll have to do some kind of string parsing using a delimiter. For a one dimensional array, assuming that the values in the array will not contain spaces, you can split on the space character.
public T[] ConvertToArray<t>(string s)
{
string[] arr = s.Split(' ');
T[] retArr = new T[arr.Length];
return Array.ConvertAll<string,>(arr, str => (T)Convert.ChangeType(str, typeof(T)));
}
</t>
For 2D arrays, you'll have to have another delimiter to separate dimensions, split on that (recursively?) and call ConvertToArray on the resulting split arrays.
|
|
|
|
|
thanks a lot...
the quieter u become more u hear
|
|
|
|
|
I want to convert object to Array List but stuck how to do.
Actually I am doing this because I am passing argument of an array this array is contains some panels.
When I pass these panels to another form it copy the references of panels. Any thing changes in child form(in panels ) affect the father form panels.
Here is the code.
object obj = array.Clone();
Now the object become object array but there is no technique to convert this obj to object[].
If you have any suggestion to overcome my problem to not copy the references of the array(panels) .
You are most welcome if you give any suggestion.
|
|
|
|
|
Naveed khan nido wrote: but there is no technique to convert this obj to object[].
object[] obj = (object[])obj
|
|
|
|
|
Thanks for giving the technique to convert object to object array.
But after cloning I have facing the same problem. Can you help me regards this.
Thanks
|
|
|
|
|
Cloning the array won't help solve your problem - the array will get cloned, not the elements in the array. The panel objects will still be shared.
You can deep clone i.e. clone the panels themselves. What are you trying to do though?
|
|
|
|
|
yes you are right.
It is still coping the references.
The thing I am doing is that I have an array of panels and these panels have some Labels and Picture Boxes. Now I am going to create an another form and need a copy of these panels and the objects that panels contains.
In another form it will further changes(i,e Labels or Pic Boxes) that changes should not made to Parent Form.
So what should I do. Can you give me an example of deep clone. How should solve my problem.
thanks for reply.
|
|
|
|
|
You could write a function that will do the deep clone for you...
|
|
|
|