|
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
|
|
|
|
|
Hi Tapan Dantre,
Itried your code, but it doen't wotk for Visual C# 2003. Can you pl. help me with Visual C# 2003 version of Serial Communication. I was trying to get your email, but it was not included. I worked in Hyderabad before coming to USA.
Thanks
bj
|
|
|
|
|
You'd get a better response if you posted you're question in his articles forum, not here.
bj2005 wrote:
I was trying to get your email, but it was not included.
There's a reason for that!
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
I was tryong for his email or his articles forum. I didn't get. So I posted here
bj
|
|
|
|
|
How can I make the tabControl in RightToLeft
Thankx
|
|
|
|
|
Hi,
You can set the TabControls RightToLeft property to true.
Thanks
SGS
|
|
|
|
|
I tried that, but the tabControl stay left to right
Thankx
|
|
|
|
|
i've create a paintbrush program where i have a panel on the form and on it the user can draw circles, lines or rectangles. the problem is the when i drag the form down or minimize and maximize it again the drawing which the user has done is erased. how can i stop that from happening? should i use an arraylist?
Adi
|
|
|
|