|
See here[^]
Courtesy of Google.
Nobody can give you wiser advice than yourself. - Cicero
.·´¯`·->Rajesh<-·´¯`·.
Codeproject.com: Visual C++ MVP
|
|
|
|
|
i have a datatable , i mean a temporary table , which has nothing to do with the sql server 2000 database.
now my question is , how can i filter the records from that temporary table , to filter the records.
Yesterday is a canceled check. Tomorrow is a promissory note. Today is the ready cash. USE IT.
|
|
|
|
|
use Select() and write you filter, that will return DataRow[]
Code:
DataRow[] Dr = DT.Select("EmpId = 'E999'");
all rows, whose EmpId is equals to E999 will store in Dr
hope this will help
TVMU^P[[IGIOQHG^JSH`A#@`RFJ\c^JPL>;"[,*/|+&WLEZGc`AFXc!L
%^]*IRXD#@GKCQ`R\^SF_WcHbORY87??6?N8?BcRAV\Z^&SU~%CSWQ@#2
W_AD`EPABIKRDFVS)EVLQK)JKSQXUFYK[M`UKs*$GwU#(QDXBER@CBN%
Rs0~53%eYrd8mt^7Z6]iTF+(EWfJ9zaK-i?TV.C\y<p?jxsg-b$f4ia>
--------------------------------------------------------
128 bit encrypted signature, crack if you can
|
|
|
|
|
is there any need of type casting ?
Yesterday is a canceled check. Tomorrow is a promissory note. Today is the ready cash. USE IT.
|
|
|
|
|
Select returns an array of DataRow . So type casting is not needed.
|
|
|
|
|
GridView inner = (GridView)e.Row.FindControl("inner");<br />
DataRowView dro = (DataRowView)e.Row.DataItem;<br />
if (Session["dt1"] != null)<br />
{<br />
if (inner != null)<br />
{<br />
DataTable dt = (DataTable)Session["dt1"];<br />
DataRowView drowv = (DataRowView)e.Row.DataItem;<br />
DataRow[] dr = (DataRow[])dt.Select("No=" + dro.Row.ItemArray.GetValue(0).ToString());<br />
inner.DataSource = dr;<br />
inner.DataBind();<br />
}<br />
}
Am i doing right to bind the data ?
Yesterday is a canceled check. Tomorrow is a promissory note. Today is the ready cash. USE IT.
|
|
|
|
|
Sonia Gupta wrote: (DataRow[])dt.Select("No=" + dro.Row.ItemArray.GetValue(0).ToString());
dt.Select("No=" + dro.Row.ItemArray.GetValue(0).ToString()); I think casting is not needed
|
|
|
|
|
stll there is an error
DataBinding: 'System.Data.DataRow' does not contain a property with the name 'Itemno'.
this column name exist in the table.
Following is the code
<br />
GridView inner = (GridView)e.Row.FindControl("inner");<br />
DataRowView dro = (DataRowView)e.Row.DataItem;<br />
if (Session["dt1"] != null)<br />
{<br />
if (inner != null)<br />
{<br />
DataTable dt = (DataTable)Session["dt1"];<br />
DataRowView drowv = (DataRowView)e.Row.DataItem;<br />
DataRow[] dr = dt.Select("No=" + dro.Row.ItemArray.GetValue(0).ToString());<br />
inner.DataSource = dr;<br />
inner.DataBind();<br />
}<br />
}
Yesterday is a canceled check. Tomorrow is a promissory note. Today is the ready cash. USE IT.
|
|
|
|
|
You don't use a property called 'Itemno' in this code. Did you try using a debugger ? Do you know which line has the error ? I doubt it's one of these...
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 )
|
|
|
|
|
casting may require for columns, but for rows you wont need it
TVMU^P[[IGIOQHG^JSH`A#@`RFJ\c^JPL>;"[,*/|+&WLEZGc`AFXc!L
%^]*IRXD#@GKCQ`R\^SF_WcHbORY87??6?N8?BcRAV\Z^&SU~%CSWQ@#2
W_AD`EPABIKRDFVS)EVLQK)JKSQXUFYK[M`UKs*$GwU#(QDXBER@CBN%
Rs0~53%eYrd8mt^7Z6]iTF+(EWfJ9zaK-i?TV.C\y<p?jxsg-b$f4ia>
--------------------------------------------------------
128 bit encrypted signature, crack if you can
|
|
|
|
|
Hello Friends,
I am developing an Windows application in C#.NET and i have Panel controls on the form in this panel there are some other controls i want that when ever i click on copy button then the panel control will get copied along with it control and whenever i paste it on MS word document then it comes in image or clip format.
|
|
|
|
|
can you display the code?
TVMU^P[[IGIOQHG^JSH`A#@`RFJ\c^JPL>;"[,*/|+&WLEZGc`AFXc!L
%^]*IRXD#@GKCQ`R\^SF_WcHbORY87??6?N8?BcRAV\Z^&SU~%CSWQ@#2
W_AD`EPABIKRDFVS)EVLQK)JKSQXUFYK[M`UKs*$GwU#(QDXBER@CBN%
Rs0~53%eYrd8mt^7Z6]iTF+(EWfJ9zaK-i?TV.C\y<p?jxsg-b$f4ia>
--------------------------------------------------------
128 bit encrypted signature, crack if you can
|
|
|
|
|
IDataObject iData = System.Windows.Forms.Clipboard.GetDataObject();
Clipboard.SetDataObject(panel1.Controls);
|
|
|
|
|
You can use the DrawToBitmap method on your panel, and then copy your bitmap into the clipboard. Copying a control into the clipboard, copies the control. Not a picture of it.
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 )
|
|
|
|
|
Hi everybody
I have a combobox on a cell of datagrid
I want do a action flow:
After I chose a value for combobox, I press enter, the cursor have to jump to next cell.
Please help me soon,
Sorry if I write not exactly
If you can please write me a email to dungbt84@gmail.com
Thank you a lot,
|
|
|
|
|
use CellEndEdit or CellValueChanged event, and increase the column index
private void dataGridView1_CellEndEdit(object sender, DataGridViewCellEventArgs e)
{
int Cindex = e.ColumnIndex + 1;
dataGridView1[Cindex, e.RowIndex].Selected = true;
}
hope this will help
TVMU^P[[IGIOQHG^JSH`A#@`RFJ\c^JPL>;"[,*/|+&WLEZGc`AFXc!L
%^]*IRXD#@GKCQ`R\^SF_WcHbORY87??6?N8?BcRAV\Z^&SU~%CSWQ@#2
W_AD`EPABIKRDFVS)EVLQK)JKSQXUFYK[M`UKs*$GwU#(QDXBER@CBN%
Rs0~53%eYrd8mt^7Z6]iTF+(EWfJ9zaK-i?TV.C\y<p?jxsg-b$f4ia>
--------------------------------------------------------
128 bit encrypted signature, crack if you can
modified on Tuesday, February 26, 2008 3:16 AM
|
|
|
|
|
thank you for your help but I can't use.
My problem flow:
I have to create a datagrid(for example 5 columns and 3 rows).
If my cursor is at [0,0].When I press enter my cursor jump to [3,0], press enter next it jump to [4,0].
(columns 4 include the comboboxs). After I chose value at combobox. I press enter, the curtor jumb immediate to [1,0].
I think it is so difficult, please help me!
Thank you again,
|
|
|
|
|
so you will need to code yourself, like
if (e.ColumnIndex == 0)
{
}
else if (e.ColumnIndex == 3)
{
}
.........
TVMU^P[[IGIOQHG^JSH`A#@`RFJ\c^JPL>;"[,*/|+&WLEZGc`AFXc!L
%^]*IRXD#@GKCQ`R\^SF_WcHbORY87??6?N8?BcRAV\Z^&SU~%CSWQ@#2
W_AD`EPABIKRDFVS)EVLQK)JKSQXUFYK[M`UKs*$GwU#(QDXBER@CBN%
Rs0~53%eYrd8mt^7Z6]iTF+(EWfJ9zaK-i?TV.C\y<p?jxsg-b$f4ia>
--------------------------------------------------------
128 bit encrypted signature, crack if you can
|
|
|
|
|
I can't do as you said.
Please try to help me again.
|
|
|
|
|
well,
if (e.ColumnIndex == 0)
DGV[3, e.RowIndex].Selected = true;
else if (e.ColumnIndex == 3)
DGV[4, e.RowIndex].Selected = true;
else if (e.ColumnIndex == 4)
DGV[1, e.RowIndex].Selected = true;
hope this will help
TVMU^P[[IGIOQHG^JSH`A#@`RFJ\c^JPL>;"[,*/|+&WLEZGc`AFXc!L
%^]*IRXD#@GKCQ`R\^SF_WcHbORY87??6?N8?BcRAV\Z^&SU~%CSWQ@#2
W_AD`EPABIKRDFVS)EVLQK)JKSQXUFYK[M`UKs*$GwU#(QDXBER@CBN%
Rs0~53%eYrd8mt^7Z6]iTF+(EWfJ9zaK-i?TV.C\y<p?jxsg-b$f4ia>
--------------------------------------------------------
128 bit encrypted signature, crack if you can
|
|
|
|
|
C# default that if you press enter the cursor jump down. So I can't do like as you said.
I think I have to change control. But I can't.
Please help me!
Thz,
|
|
|
|
|
why you cant do????? if you do then it will work else wont and never
i gave you entire code that you need, just put them in CellValueChanged or CellEndEdit event
TVMU^P[[IGIOQHG^JSH`A#@`RFJ\c^JPL>;"[,*/|+&WLEZGc`AFXc!L
%^]*IRXD#@GKCQ`R\^SF_WcHbORY87??6?N8?BcRAV\Z^&SU~%CSWQ@#2
W_AD`EPABIKRDFVS)EVLQK)JKSQXUFYK[M`UKs*$GwU#(QDXBER@CBN%
Rs0~53%eYrd8mt^7Z6]iTF+(EWfJ9zaK-i?TV.C\y<p?jxsg-b$f4ia>
--------------------------------------------------------
128 bit encrypted signature, crack if you can
|
|
|
|
|
I have to override protected bool ProcessCmdKey(ref System.Windows.Forms.Message msg, System.Windows.Forms.Keys keyData) and use sendkey method.
I finished this problem
Thz you a lot,
|
|
|
|
|
why are you making it complicated, however it could be done by that easy way.
anyway its your wish
TVMU^P[[IGIOQHG^JSH`A#@`RFJ\c^JPL>;"[,*/|+&WLEZGc`AFXc!L
%^]*IRXD#@GKCQ`R\^SF_WcHbORY87??6?N8?BcRAV\Z^&SU~%CSWQ@#2
W_AD`EPABIKRDFVS)EVLQK)JKSQXUFYK[M`UKs*$GwU#(QDXBER@CBN%
Rs0~53%eYrd8mt^7Z6]iTF+(EWfJ9zaK-i?TV.C\y<p?jxsg-b$f4ia>
--------------------------------------------------------
128 bit encrypted signature, crack if you can
|
|
|
|
|
I'm trying to figure out a good way to make an installer for my C# app. It needs to be able to target both 32 and 64 bit systems, downloading the correct version of .NET for each if it's missing from the target system. I looked at InstallShield first as a well-known option, but found that the edition I would need costs around $1.5K. Can any one recommend a good solution for creating installers that doesn't cost quite that much?
|
|
|
|