|
how can i get the index of the items in datagrid's current page?
the source of the datagrid is from the datatable, now, i want to get the index of the items(shown of the datagrids current page)in the datatable.
|
|
|
|
|
I am getting the mp3 file properties using shell(ShellClass)...
Folder dir;
dir.GetDetailsOf(item, 19); //returns track number....
like that i am getting artist,album and other details.....
i need to get "Rating" property..... i tried with all index... like dir.GetDetailsOf(item, 20);,dir.GetDetailsOf(item, 21);
but i didnt get Rating informations....how to get it...?
|
|
|
|
|
hi...
could someone tell me the codes for this scenario..
if i click on the datagridview for example username
if i click that username that username will appear in a label or textbox...
thanks...
ginji
modified on Friday, June 20, 2008 3:12 AM
|
|
|
|
|
In the grid's CellClick event you could have code something like...
String sColName = GridView.Columns[e.ColumnIndex].Name;
if (sColName == "username")
TextUser.Text = GridView.CurrentRow.Cells["username"].Value.ToString();
|
|
|
|
|
How to sort array values. but sot\rting parameters are in list<t>.what do do?
for example in below code i want sort the values. what shall i do? shall you help me for this sorting process?
private struct Xsweep
{
public double X;
public double Y;
public int cI;
public int pI;
public int nI;
public int n;
}
List<xsweep> Poly = new List<xsweep>();
List<double> X = new List<double>();
n = Poly.Count - 1;
for (int i = 0; i <= n; i++)
{
if(i < X.Count)
X[i] = Poly[i].X;
else
X.Add(Poly[i].X);
}
Array.Sort(X, Poly);
|
|
|
|
|
some codes are changed there
Poly is list[XSweep]
X is list[double]
|
|
|
|
|
cst_kvp wrote: List Poly = new List();
List X = new List();
n = Poly.Count - 1;
What is this ? You have not added anything to your list poly , how can you iterate the items then ?
|
|
|
|
|
Hi,
Did you look at the built in sortable list types ?
Those who want most to speak up, are often those who have nothing clever to say.
|
|
|
|
|
there is no logic at all in ur code.
First read some books related to arrays and then try to code it.
SSK.
Anyone who says sunshine brings happiness has never danced in the rain.
|
|
|
|
|
In xml file we write "<" as "<";
How to write double quotes "in XML file
|
|
|
|
|
u can write "<" as
" < "
modified on Friday, June 20, 2008 3:33 AM
|
|
|
|
|
" = "
You could use System.Web.HttpUtility.HtmlEncode("anysignyouwant") to get the answer.
Kjetil
|
|
|
|
|
I have a requirement to add dynamically a list box or checkbox to a propertygrid at runtime. I do not know at compile time what type of property items to be added to property Grid.
I am able to achieve to add dynamically a simple property item like a text
by overriding the "PropertyDescriptor" Class in my customdescriptor class.
But how to add in similar way a checkbox or listbox to propertygrid dynamically ?
I was not successfull till now.
But I can achieve the same thing for example adding a checkbox property item at compile time(without overriding PropertyDescriptor) by using UiTypeEditor like:
public class CheckBoxTest : System.Drawing.Design.UITypeEditor
{
public override bool GetPaintValueSupported(ITypeDescriptorContext context)
{
return true;
}
public override void PaintValue(System.Drawing.Design.PaintValueEventArgs e)
{
System.Windows.Forms.ControlPaint.DrawCheckBox(e.Graphics, e.Bounds, ((CustomProperty)e.Context.Instance).checkValue ? ButtonState.Checked : ButtonState.Normal);
}
}
But If I try to achieve the above to be executed at runtime by overriding "PropertyDescriptor" These functions are not called.
Can anyone have any idea ?
Thanks,
Rajan
|
|
|
|
|
How can i access the url of a reporting service?
I have a button, and when you click it, it should get the one report from SSRS.
A help/reply will be much appreciated.
|
|
|
|
|
can some one tell me how to compare textbox value if the same with database value..
textbox1.text == dr1["password"].tostring();
dr1 is datarow..
everytime i run the program even if the value of the are the same it still exits...
for example if textbox1.text = "password" and dr1["password"] value is also "password" the program says there not the same
thanks
ginji
|
|
|
|
|
1. Make Sure There is no space in the text , means infront and in the end. some times its makes a big issue.
2. try it
if(textbox1.text.equals(dr1["password"])<br />
{<br />
}
|
|
|
|
|
thanks... but it still the same output..
|
|
|
|
|
could you please put the code block over here, which will be helpful for us to give some solluation.
|
|
|
|
|
if(string.Compare(textbox1.text.Trim(),dr1["password"].tostring().Trim()) == 0)
|
|
|
|
|
Hi navaneeth,
is there any thuig wrong with this
if(textbox1.text.equals(dr1["password"])<br />
{<br />
}
|
|
|
|
|
|
|
anyone who have an idea what is the concept of using the web service as a datasource of a reporting service? How can i implement that?
Or maybe the question is, how can i use the web service as a datasource of a reporting service.
Thanks guys!
|
|
|
|
|
ewin wrote: Subject: A little help
First of all , never put this type of subject , always try to give proper subject that can easily understandable of your question by all Forum member.
ewin wrote: how can i use the web service as a datasource of a reporting service.
Try This[^]
|
|
|
|
|
ooops... I'm really sorry
|
|
|
|