 |
|
|
 |
|
 |
I ran your demo program but when I make a selection in the drop down, it does not display the value of the display member if I set my dropdown style to "DropDownList". It works fine as "DropDown" style.
bryan
|
|
|
|
 |
|
 |
MultiColumnComboBox1_SelectedIndexChanged is not worked.Why?
Please Help Me.....
|
|
|
|
 |
|
 |
hi
i cant get SelectedValue from your dll ,help me . thanks
|
|
|
|
 |
|
 |
Hi, great control this. Just trying to figure out how I can make the textbox area a search field for all(or more than 1) column
When I click in the textbox now the list dissappears. I would like something like suggest/append functionality. I'm looking at the lstvMyView_KeyDown eventhandler is this the right place to start?
|
|
|
|
 |
|
 |
Hi - I converted the code it a VB.NET code and tried and it works fine. But the events like MultiColumnComboBox1_SelectedIndexChanged and MultiColumnComboBox1_SelectedValueChanged not working. They are not firing.. can someone help please ? It is urgent.
|
|
|
|
 |
|
 |
kannan_k7 wrote: Hi - I converted the code it a VB.NET code and tried and it works fine. But the events like MultiColumnComboBox1_SelectedIndexChanged and MultiColumnComboBox1_SelectedValueChanged not working. They are not firing.. can someone help please ? Hi, Check this blog post .NET Code Conversion[^]
|
|
|
|
 |
|
 |
Running the sample code in VS2008 I had some issues with the position of the drop down list. The following code correctly positions the control: Point x = this.PointToScreen(this.Location); x.Y -= this.Top; x.Y += this.Height; x.X -= this.Left; popup.Location = x;
Also to handle the F4 key which will drop the list, for me the original drop down list would appear over the listview. protected override void OnKeyDown(KeyEventArgs e) { if (e.KeyCode == Keys.F4) { DoWork(); e.Handled = true; } }
The DoWork() method does all the code in protected override void OnDropDown(System.EventArgs e) except the base.OnDropDown() call. Sorry for the messy code, I'm in a hurry
|
|
|
|
 |
|
|
 |
|
|
 |
|
 |
Hi,
Can you please send me the updated code on delphixf@gmail.com
thanks .
|
|
|
|
 |
|
|
 |
|
 |
Hi toidy,
i have the same Problem. When you (anyone) find a solution pleace post it.
thanks a lot
guido
|
|
|
|
 |
|
 |
Hi,
Can you please send me the updated code on pronexo@gmail.com
thanks .
JM
|
|
|
|
 |
|
 |
Good work, it helps me a lot.
Thanks to the forum too.
The intelligence without action is nothing.
Mario T.
|
|
|
|
 |
|
 |
I was asked to develop a similar control using AJAX in my previous Web project but wasn't sure how to approach the problem using AJAX to transer the dataset from server to the client. Good start .
|
|
|
|
 |
|
 |
Is there any way to eliminate them beside adjusting the height and width of the pop-up ?
|
|
|
|
 |
|
 |
Hi This was exactly i was looking for but is it possible for anybody to re-write it in vb.net.. i have no clue about C# and any other apart from vb.net.... Any help focus or is there any other way to do the same in vb.net...??.. Gurdeep
Plz email me at gurdeeptoor@yahoo.ie
Thanks in advance
|
|
|
|
 |
|
 |
Don't need to have it VB. Just compile the project code as a DLL and drop the DLL into your VB project as a reference then add the dll as an item to your toolbox.
|
|
|
|
 |
|
 |
Hi,
does anyone know how to modify this code to get the the columns to sort when I click on the column header?
|
|
|
|
 |
|
 |
I'm waiting for the same function.
|
|
|
|
 |
|
 |
When I was using this control, I noticed some things
1. The row that was selected, was not returned. So we couldn't use any values from other columns
Solution
(CHANGES IN MultiColumnComboBox.cs)
private void MultiColumnComboBox_AfterSelectEvent(object sender, DataRow drow){
try{
if(drow!=null){
this.SelectedRow = drow;
this.Text = drow[displayMember].ToString();
}
}catch(Exception exp){
MessageBox.Show(this,exp.Message,"Error",MessageBoxButtons.OK,MessageBoxIcon.Error);
}
}
2. There was no possibility to open the listview and select the row accordingly to the data in the combobox.
Solution
(CHANGES IN MultiColumnComboPopup.cs)
///
/// Function that will select the row with the given value.
///
/// Value to select in the listview
/// Integer, containing the selected rownumber
public int SetValue(string ItemToDisplay)
{
int intRow = -1;
for(int i=0;i0)
// These controls are on a tabpage
popup.Location=new Point(parent.Left + this.Left + 16, parent.Top + this.Bottom + this.Height + 190 + 22);
else if (this.Name.ToString()=="cboPresentation")
popup.Location=new Point(parent.Left + this.Left + 16 - 292 + this.Width, parent.Top + this.Bottom + this.Height );
else
popup.Location=new Point(parent.Left + this.Left + 8 ,parent.Top + this.Bottom + this.Height);
popup.Show();
if (popup.lstvMyView.SelectedIndices.Count > 0)
popup.lstvMyView.EnsureVisible(popup.lstvMyView.SelectedIndices[0]);
if(AfterSelectEvent!=null)
AfterSelectEvent();
}
base.OnDropDown(e);
}
catch (Exception ex)
{
throw ex;
}
}
|
|
|
|
 |
|
 |
In order to position the popup I use the following code in the OnDropDown event method:
popup.Location = this.PointToScreen (new Point(0,this.Height));
Anders Norell
Software engineer, Sweden
|
|
|
|
 |
|
 |
how insert Multi Column ComboBox in to DataGridView?
|
|
|
|
 |
|
|
 |