|
hello
i want to add submit button on grid view control.
pls tell me code.
gayatri
Gayatri
|
|
|
|
|
Submit to where?
Changes are always written to the DataSource, but that doesn't mean that they are written to the database or file that the data comes from. That you have to write code for. If this is what you want to do you must be more specific on what the source is. There is also a lot of examples on how to do this on MSDN and internet.
|
|
|
|
|
thanku sir
sir i want button in one column.
when i click on that button that time the values are display on textbox etc.
so pls help me.
gayatri
Gayatri
|
|
|
|
|
I'm looking for a working FTP server class / code in C#, preferably without interface. Any help would be great.
|
|
|
|
|
Please help me how do i c orrect this errors
|
|
|
|
|
easy, switch off the computer, unplug it, pack it back into the box it came in, take it back to the store and tell them you're not allowed to own a computer.
Or, read this[^] and pay attention to the section on error messages.
|
|
|
|
|
Hi all,
I have a form and there is a combobox on it. I pass some values to a function in another class for example:
...
public void ODBCBindControls(Control.ControlCollection collection, BindingSource source)
...
I then want to set the DataSource and the DisplayMember of the combobox in the function mentioned above collection[x] . But I cannot get hold of the two properties. Why is this? Is there a way around it, or am I trying something that is desirable?
Many thanks in advance
Regards,
The only programmers that are better that C programmers are those who code in 1's and 0's
Programm3r
My Blog: ^_^
|
|
|
|
|
Well this works ...
...
ComboBox box = (ComboBox)collection[c];
box.DataSource = source;
box.DisplayMember = "COID";
...
The only programmers that are better that C programmers are those who code in 1's and 0's
Programm3r
My Blog: ^_^
|
|
|
|
|
You always need to cast the object to the correct type to be able to access specific properties. So this way is the only way.
|
|
|
|
|
Thanks for the advice Christian.
I do something like this:
...
Type controlType = collection[c].GetType();
switch (controlType.FullName)
{
case "System.Windows.Forms.ComboBox":
...
}
...
Thanks
Regards,
The only programmers that are better that C programmers are those who code in 1's and 0's
Programm3r
My Blog: ^_^
|
|
|
|
|
Or...
if (collection[c] is System.Windows.Forms.ComboBox)
{
...
}
|
|
|
|
|
|
In C# , I have upload data from CSv file to SQL Table without using CsvDataReader. is there a way to do this?
|
|
|
|
|
Why can't you use CsvDataReader? One alternative would be a combination of StreamReader and the String.Split method.
He who makes a beast out of himself gets rid of the pain of being a man
|
|
|
|
|
Yes,
csv to dataset
dataset to Database
CP[^]
Google[^]
|
|
|
|
|
hi
What is the way to check for empty arraylist?..any one can help me ?
|
|
|
|
|
Check the .Count property.
|
|
|
|
|
yaa...i tried...but it is throwing an exception....
|
|
|
|
|
Probably your ArrayList is not created yet. Check if it's null first. Not created is not the same as empty.
|
|
|
|
|
In that case show your code and tell us what the exception says.
Giorgi Dalakishvili
#region signature
my articles
#endregion
|
|
|
|
|
I am developing an windows application where i have an MDI parent form that has menu strip i want that what ever option i have select from menu strip that may effect on MDI child form.
Suppose that
I have a label control on the child form i what to change the text color of that label then i have selected the option from menustrip that is in MDIparent so how can i show color dialog from MDI parent that can work for MDI Child form...
|
|
|
|
|
I would accomplish this with events. Create events for all toolbar buttons on the MDI parent and have the child forms listen to the events that they can make something out of. That way you do not need to check if the currently active child form can handle the function that the user is clicking.
|
|
|
|
|
Is any one can help me with this coding :
Thx
using System;
using System.Collections.Generic;
using System.Text;
using System.Collections;
namespace ApplicantTestin
{
/// The DataObject class stored with a key
class DataObject
{
// Populate
}
class Program
{
static Hashtable Data = new Hashtable();
static string[] StaticData = new string[] { "X-Ray","Echo","Alpha", "Yankee","Bravo", "Charlie",
"Delta", "Hotel", "India", "Juliet", "Foxtrot","Sierra",
"Mike","Kilo", "Lima", "November", "Oscar", "Papa", "Qubec",
"Romeo", "Tango","Golf", "Uniform", "Victor", "Whisky",
"Zulu"};
static void Main(string[] args)
{
for(int i=0;i<staticdata.length; i++)<br="" mode="hold"> Data.Add(StaticData[i].ToLower(), new DataObject(StaticData[i]) );
while(true)
{
PrintSortedData();
Console.WriteLine();
Console.Write("> ");
string str = Console.ReadLine();
string[] strs = str.Split(' ');
if(strs[0]=="q")
break;
else if(strs[0]=="print")
PrintSortedData();
else if(strs[0]=="inc")
Increase(strs[1]);
else if(strs[0]=="dec")
Decrease(strs[1]);
else if(strs[0] == "swap")
Swap(strs[1], strs[2]);
else if (strs[0] == "ref")
Ref(strs[1], strs[2]);
else if (strs[0] == "unref")
UnRef(strs[1]);
}
}
///
/// Create a reference from one data object to another.
///
/// <param name="key1" />The object to create the reference on
/// <param name="key2" />The reference object
static void Ref(string key1, string key2)
{
// Populate
}
///
/// Removes an object reference on the object specified.
///
/// <param name="key" />The object to remove the reference from
static void UnRef(string key)
{
// Populate
}
///
/// Swap the data objects stored in the keys specified
///
static void Swap(string key1, string key2)
{
// Populate
}
///
/// Decrease the Value field by 1 of the
/// data object stored with the key specified
///
static void Decrease(string key)
{
// Populate
}
///
/// Increase the Value field by 1 of the
/// data object stored with the key specified
///
static void Increase(string key)
{
// Populate
}
///
/// Prints the information in the Data hashtable to the console.
/// Output should be sorted by key
/// References should be printed between '<' and '>'
/// The output should look like the following :
///
///
/// Alpha...... -3
/// Bravo...... 2
/// Charlie.... <zulu>
/// Delta...... 1
/// Echo....... <alpha>
/// --etc---
///
///
static void PrintSortedData()
{
// Populate
}
}
}
|
|
|
|
|
1 - everyone wants help, 'help' is not an intelligent subject
2 - yes, we can help. What's the problem ? Oh, the problem is that you have a bunch of blank methods and hope we'll do your homework for you ? In that case, no.
Christian Graus
Please read this if you don't understand the answer I've given you
"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 )
|
|
|
|
|
alextheman wrote: Subject:Help
Never give subject line in that way. alswas try to put correct subject for your problem.
alextheman wrote: Is any one can help me with this coding :
How can some one help you with out knowing your problem?
Best Regards
-----------------
Abhijit Jana
Microsoft Certified Professional
"Success is Journey it's not a destination"
|
|
|
|