Click here to Skip to main content
15,899,313 members
Home / Discussions / C#
   

C#

 
GeneralRe: Maximum number of columns in .NET DataTable Pin
ehtshamkh26-Jul-12 2:02
ehtshamkh26-Jul-12 2:02 
GeneralRe: Maximum number of columns in .NET DataTable Pin
suresh Naidu.K11-Oct-12 2:29
suresh Naidu.K11-Oct-12 2:29 
QuestionRe: Maximum number of columns in .NET DataTable Pin
Shrikesh_kale9-Aug-17 22:06
Shrikesh_kale9-Aug-17 22:06 
GeneralRe: Maximum number of columns in .NET DataTable Pin
suresh Naidu.K11-Oct-12 2:29
suresh Naidu.K11-Oct-12 2:29 
GeneralCreating an install file with prerequisites such as .net framework built in Pin
Nokoff15-Apr-08 3:22
Nokoff15-Apr-08 3:22 
GeneralRe: Creating an install file with prerequisites such as .net framework built in Pin
phannon8615-Apr-08 3:33
professionalphannon8615-Apr-08 3:33 
GeneralRe: Creating an install file with prerequisites such as .net framework built in Pin
Ashish Sehajpal15-Apr-08 4:32
Ashish Sehajpal15-Apr-08 4:32 
QuestionAdd combobox inside excel cell [modified] Pin
Abdelwahab15-Apr-08 2:51
Abdelwahab15-Apr-08 2:51 
I have added 10 combobox in column "B" for 10 different rows.i have added 10 EventHandler for each combobox but when the event fire of one of combobox ,it fires in the 10 combobox.
bellow is the code i used:
private void Sheet2_Startup(object sender, System.EventArgs e)
{
for (int i = 0; i < 10; i++)
{
String rowIndex = (i + 5).ToString();
Microsoft.Office.Tools.Excel.Controls.ComboBox cmbItemName = this. Controls.AddComboBox(this.Range["B" + rowIndex, "B" + rowIndex], "cmbItemName" + rowIndex);
cmbItemName.DataSource = mItemTable;
cmbItemName.DisplayMember = mItemTable.Columns["name"].ColumnName;
cmbItemName.ValueMember = mItemTable.Columns["uid"].ColumnName;
cmbItemName.DropDownStyle = ComboBoxStyle.DropDownList;
cmbItemName.SelectedItem = null;
cmbItemName.SelectedIndexChanged += new EventHandler(comboBox_SelectedIndexChanged);

}
}


private void comboBox_SelectedIndexChanged(object sender, EventArgs e)
{
Microsoft.Office.Tools.Excel.Controls.ComboBox cmbItemName = (Microsoft.Office.Tools.Excel.Controls.ComboBox)sender;

String itemUid= cmbItemName.SelectedValue.ToString();
}

modified on Tuesday, April 15, 2008 9:07 AM

Questionstruct array in C# Pin
Programm3r15-Apr-08 2:40
Programm3r15-Apr-08 2:40 
QuestionIs this correct Pin
Programm3r15-Apr-08 3:08
Programm3r15-Apr-08 3:08 
QuestionWell, did you try it? Pin
Vikram A Punathambekar15-Apr-08 3:46
Vikram A Punathambekar15-Apr-08 3:46 
GeneralRe: Well, did you try it? Pin
Programm3r15-Apr-08 4:08
Programm3r15-Apr-08 4:08 
GeneralRe: Is this correct Pin
Luc Pattyn15-Apr-08 3:59
sitebuilderLuc Pattyn15-Apr-08 3:59 
GeneralRe: Is this correct Pin
Programm3r15-Apr-08 4:10
Programm3r15-Apr-08 4:10 
GeneralRe: Is this correct Pin
papadimitriou15-Apr-08 4:19
papadimitriou15-Apr-08 4:19 
GeneralRe: struct array in C# Pin
leppie15-Apr-08 4:23
leppie15-Apr-08 4:23 
QuestionBroadcasting Issue Pin
Shouvik Das15-Apr-08 2:31
Shouvik Das15-Apr-08 2:31 
GeneralRe: Broadcasting Issue Pin
Dave Kreskowiak15-Apr-08 4:21
mveDave Kreskowiak15-Apr-08 4:21 
GeneralRe: Broadcasting Issue Pin
Shouvik Das15-Apr-08 4:27
Shouvik Das15-Apr-08 4:27 
GeneralRe: Broadcasting Issue Pin
leppie15-Apr-08 6:09
leppie15-Apr-08 6:09 
QuestionConvert the string to ASCII(HEX) Pin
merh15-Apr-08 2:21
merh15-Apr-08 2:21 
GeneralRe: Convert the string to ASCII(HEX) Pin
Luc Pattyn15-Apr-08 4:06
sitebuilderLuc Pattyn15-Apr-08 4:06 
AnswerRe: Convert the string to ASCII(HEX) Pin
merh15-Apr-08 21:17
merh15-Apr-08 21:17 
GeneralRe: Convert the string to ASCII(HEX) Pin
Luc Pattyn16-Apr-08 0:23
sitebuilderLuc Pattyn16-Apr-08 0:23 
QuestionCopy Process Console to clipboard Pin
dwrst15-Apr-08 2:01
dwrst15-Apr-08 2:01 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.