|
Hello dear all
i am some bit problem that i wnat to delete mutirow in datagrid how i can delete it. i have search more it there is not one property in datagrid please help me
Priyank Gupta
|
|
|
|
|
A datagrid has a datasource, you must delete rows from there.
|
|
|
|
|
yes i know that but first i want know thata how many row select in datagrid
please tell me how do ou find that how many row select in datagrid there is nay propert that we can find it Please help me
thanks for reply
Priyank Gupta
|
|
|
|
|
I'm trying to do logarithmic curve fitting to plotted data points.
The equation is as follows:
y = a + b*ln(x)
The problem is that I have no clue how to compute the 'a' and 'b' coefficients.
Can anyone think back to scientific comp to remember how this is done?
Thanks
|
|
|
|
|
let u=ln(x)
then y = a + b*u
now use the method of least squares to find a and b.
Note: you are using the method of least squares to find y(u), so everywhere you would use x in least squares now use u(=ln(x)).
There are several good resources on the web. Google for 'Least squares' and 'logarithm'.
-Sean
----
Shag a Lizard
|
|
|
|
|
Hi, I'm working on a syntax-coloring textbox that inherits the RTB control and I have an annoying problem. Since I'm using Select method / SelectionColor property to highlight syntax, I must always store the current cursor position in a variable and then restore it by calling the Select method like this: this.Select(CursorPosition, 0). However, a problem occurs when contents of the textbox spread over more than one page. Namely, the call I use always causes the control to redraw in such manner that the line where CursorPosition is located becomes the first line of the visible area of the textbox, effectively shifting the visible area of the textbox a number of rows down. For example:
Pic 1
Pic 2
It is very disorienting, but I have no idea how to stop it from occuring. Is there some API call or something that can position the cursor within the control without causing this stupid change of focus? If anyone can offer me a way around the problem I will be most grateful.
|
|
|
|
|
How could I change the data source of a dataGrid in run time (Windows Forms)?
datagrid.Update()
What I am trying to do is, to change the data source of the data grid with respect to CustomerID..
If customerID is changed, than the dataView will retrieve the data from DataSet table and then update the datagrid ,without changing data source , update data source with DataView But I couldnt find the method, please guide me to achieve.
Is it possible ?
Thanks ,
Bahadir Cambel
|
|
|
|
|
Hi,
Why to change the datasource? Instead that we can associate the Dataview to the datagrid. Filter the DataSet into Dataview using RowFilter and RowStateFilter properties of Dataview.
Dataview.RowFilter = "customerID=xxxx";
Thanks
SGS
|
|
|
|
|
thanks for the reply ,
but my problem is to update the datagrid.
I can not update the dataGrid when I change the dataView.
To be more specific
I have a curreny manager which is holding the information about the customers named cm
I have 2 dataTables dt_Orders and dt_Customers for orders and customers
I inserted the update operation into ShowCurrentRecord which is called when CurrenyManager_PositionChanged event..
<code>
private void cm_PositionChanged(object sender, EventArgs e)
{
ShowCurrentRecord();
}
private void ShowCurrentRecord()
{
string CustomerID=ds_Customers.Tables["dt_Customers"].Rows[cm.Position]["CustomerID"].ToString();
for(int i =0 ;i <RowCount ;i++)
{
<p>if ( ds_Customers.Tables["dt_Orders"].Rows[i]["CustomerID"].ToString()==CustomerID )
{<p>myDataView.RowFilter="CustomerID="+CustomerID;</p>
</code>
It turned out to be , I can not set anything into RowFilter..
even if I tried dv.RowFilter="CustomerID"+CustomerID;
dv.AllowEdit();
dv.BeginInit();
When I use Watch the find the value , although CustomerID has its value , watch always shows RowFilter as null string..
Does dataView can be edited in run-time ?
|
|
|
|
|
Hahahah , the whole problem was myDataView.RowFilter = "CustomerID= '"+CustomerID+"'"; : )
|
|
|
|
|
Ok. Guess your problem is solved now
|
|
|
|
|
Has anybody come up with a to display "appointments" on a calander similar to how Outlook does it?
In particular, how to display the overlapping appointments the way Outlook does.
If anybody would like to share their ideas, I would be much obliged. I have been trying to come up with ways on my own with no success.
Thank you,
Eric
|
|
|
|
|
i am working on a project of erp in c# so i want how to costumize a print doc in c# at run time
i also want to chang
a position of feild defined in the print doc at run time
Dipesh Patel
|
|
|
|
|
Hey there!
Theres one more thing I have to bug you guys with.
ATM, I am exporting my Bitmap object to a JPEG file, which works quite well.
But I would like to have that Bitmap object/JPEG file appearing on an excelsheet ... exporting a datagrid to a specific sheet already works, so I only need to know the command for exporting the image ...
Any help greatly appreciated!
zaubara
|
|
|
|
|
Noone?
Do you know a place where I could try my luck? ...
Thanks.
|
|
|
|
|
hi,
i have a htmldocument object with what i access the internet explorers document object model. now i want to show some help windows, e.g. like all these tooltip windows, inside the active html document. can anyone of you out there give me some keywords or helpful code samples for this problem?
thanks for help.
|
|
|
|
|
|
In PDA programming, "SelectedItems" can't be used.
- How can I get the text of a selected item?
Please help
Regards,
RockRock
|
|
|
|
|
|
hi,
i created a HTMLDocument and i'm now able to access all elements inside the active page. my question is now, how can i get the x and y positions of these elements, e.g. from an image or a textbox?
hope that someone can help me with this.
thanks for any hint - pikebu
|
|
|
|
|
See this guys stuff:
[^]
This is NOT me but I am pretty impressed actually by some of this code he has done having written some similar stuff myself in the past.
|
|
|
|
|
Hi, im trying to find out how to get server info from a counterstrike server but i can't find anything good on google, i did find one article here but it was for managed c++ and im not to god at that so I wonderd if anyone has done a server info app or class and would share it or at least know a n article or tutorial on how to do it.
Regards
Edward Jewson
|
|
|
|
|
how to eject and close CD (not use mciSendString function because it has some problem with computer have more than 2 CDRom) ?
|
|
|
|
|
maybe you could try the MCI function
LONG MCIWndEject(<br />
hwnd <br />
);<br />
defined in vfw.h
there are no facts, only interpretations
|
|
|
|
|
You _can_ use mciSendString to access specific drives, so what's the problem here?
mav
|
|
|
|