|
Have you tried to use DataGridView to bind the data with the one from the database?
Or you can use a ListView, but it's a little more work to be done
Do your best to be the best
|
|
|
|
|
I want an organization chart like that drown in visio to see the hierarchy of the employees
merwa
|
|
|
|
|
English please
Smile: A curve that can set a lot of things straight!
(\ /)
(O.o)
(><)
|
|
|
|
|
THe first thing you have to check is if the is any hierarchy data in that table, or somewhere else. If not, then you're going to get a nice flat tree with everyone on the same level.
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
The choices are:
1. Write your own drawing code.
2. Use Visio.
3. Use a 3rd party drawing library.
4. Use TreeGx[^]
In all cases, you are going to have to write the code to select the hierarchy yourself.
Deja View - the feeling that you've seen this post before.
|
|
|
|
|
hi every one, well I have a bit stupid question here but can u plz tel me how to use the debugging features of VS .NET 2.0, I'm working in C# 2.0 windows application.
can u tell me how to use watches? or give me an article or something?
Thanks in advance
Rocky
|
|
|
|
|
|
thanks that looks helpful
Rocky
|
|
|
|
|
i have already created the tables in access.
i want to see the create query of the tables.
is it possible to get the create table query for existing tables in access?
Plz reply me
|
|
|
|
|
If you have access to SQL Server Management studio it is very easy, assuming you have SQL Server 2005.
Just rightclick and select Tasks > script to > CREATE.
Visual Studio can't evaluate this, can you?
public object moo<br />
{<br />
__get { return moo; }<br />
__set { moo = value; }<br />
}
|
|
|
|
|
Hi, i need to disply the ouptput text of Label in the form of Hungarian Notation..
i have a label i need to desplay the label.text values as TitleCase...
eg. if the output to label is im in love, i need to desplay as Im In Love.
Hope u got me.
please tell me the formatting solution.
prashanth,
s/w Engineer,
Syfnosys.
|
|
|
|
|
Look for the options of a regular string. I would do the following algo:
- split on every space into an array
- for every element in array, the most left character is made upper, and add it to another string
static string CamelCase(string input)<br />
{<br />
string[] words = input.Split(' ');<br />
string output = "";<br />
foreach (string word in words)<br />
{<br />
output += word.Substring(0, 1).ToUpper() + word.Substring(1) + ' '; <br />
}<br />
<br />
return output;<br />
}
Visual Studio can't evaluate this, can you?
public object moo<br />
{<br />
__get { return moo; }<br />
__set { moo = value; }<br />
}
|
|
|
|
|
Thnx for ur reply,
but i wannt to clarify onething,
here i am taking the lbltemp.Text(label) values in runtime and assigning to lbltemp, how can i do that? i don't need to split coz i'm gonna take the same format, All I Need To Do Is, just wanna make everyFirstLetter to Capitol.
And Also, Do u know how to print Degree(celcious) value through keyboard do u know ASCI Value?
Thnx
pashi
prashanth,
s/w Engineer,
Syfnosys.
|
|
|
|
|
pashitech wrote:
And Also, Do u know how to print Degree(celcious) value through keyboard do u know ASCI Value?
Try this
pashitech wrote: here i am taking the lbltemp.Text(label) values in runtime and assigning to lbltemp, how can i do that? i don't need to split coz i'm gonna take the same format, All I Need To Do Is, just wanna make everyFirstLetter to Capitol.
Well the solution that joon told you will also work at runtime. You can just do something like:
<br />
string tempString = lblTemp.Text;<br />
lblTemp.Text = tempString;<br />
Do your best to be the best
|
|
|
|
|
1. I provided you with the complete solution as a function, because I was bored, usually people write their own code. All you have to do is copy the function into your code somewhere, and make it public/private as appropriate so you can access it. Then just use lblTemp.Text = CamelCase(lblTemp.Text).
2. google "ASCII Table". Not many people know these tables by heart and googling it will be faster
Visual Studio can't evaluate this, can you?
public object moo<br />
{<br />
__get { return moo; }<br />
__set { moo = value; }<br />
}
|
|
|
|
|
press F1 in the IDE
select index
type ASCII
![Big Grin | :-D](https://www.codeproject.com/script/Forums/Images/smiley_biggrin.gif)
|
|
|
|
|
How do I enable column sort in a ListView?
_____________________________
...and justice for all
APe
|
|
|
|
|
ListView.Sorting can be set to None, Ascending, or Descending, repective to how the items will be sorted.
Hope this helps. ![Smile | :)](https://www.codeproject.com/script/Forums/Images/smiley_smile.gif)
|
|
|
|
|
But I want to click on the columns and make a sort "ala Windows Expolorer"
_____________________________
...and justice for all
APe
|
|
|
|
|
|
hi,
i am using datagridview and i am having 4 columns
now i want to validate the entry like
e.g i should enter numbers in 2'nd column ,text in thied column
pls help me.
with regards
prasad![Smile | :)](https://www.codeproject.com/script/Forums/Images/smiley_smile.gif)
|
|
|
|
|
I think you mean that make sure that what was entered in each column is in the correct format, which you can do with regular expressions. There are a lot of articles about it, try RegexTester.asp[^] to get you started.
Hope this helps. ![Smile | :)](https://www.codeproject.com/script/Forums/Images/smiley_smile.gif)
|
|
|
|
|
well u can handle this situation without using regular expressions as well. You need to handle the cellValidating event of the DGV and in that u'd code somthin like this.
int i;<br />
if(e.ColumnIndex == myDGVCol1.DisplayIndex)<br />
{<br />
if(!Int32.TryParse(e.FormattedValue,out i))<br />
{<br />
e.Cancel = true;<br />
MessageBox.Show("It is not an integer");<br />
myDGV[e.ColumnIndex, e.RowIndex].ErrorText ="Whatever";<br />
}<br />
<br />
<br />
}
and in order to go without taking special charaters u can use string manuipulation but I dont have the sample right now...
hope it helps
Rocky
|
|
|
|
|
Thank u
it is working
with regards
prasad
|
|
|
|
|
do we need to know much about javascript to understand AJAX and i want to know about AJAX in detail please guide me where do i start my preparation and how?
|
|
|
|