Moiz Saifuddin
asked on
WebCombo
How do I populate a webcombo component of infragistics programmatically in my aspx webpage. I am using .NET
Moiz
Moiz
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
String.Format("MyCell{0}", i)
String.Format allows you to pass in multiple parameters that will be substituted in the string, so I passed in "i" which is from the loop.
Here is another example of String.Format:
string.format("Hello {0}, the date today is {1}. {0}, how may I assist you today?", "MyUsername", Date.Now())
the output would be:
"Hello MyUsername, the date today is 4/28/2004. MyUsername, how may I assist you today?"
String.Format allows you to pass in multiple parameters that will be substituted in the string, so I passed in "i" which is from the loop.
Here is another example of String.Format:
string.format("Hello {0}, the date today is {1}. {0}, how may I assist you today?", "MyUsername", Date.Now())
the output would be:
"Hello MyUsername, the date today is 4/28/2004. MyUsername, how may I assist you today?"
ASKER
How do I set the Autopostback=true for the dropdownlistbox?
Moiz
Moiz
ASKER
sorry not dropdownlistbox, I meant the webcombo from the infragistics component...
Moiz
Moiz
ASKER
sorry again, Im thinking in terms of the old components of .NET. I double clicked and it went to the SelectedRowChanged event, thanks again
Moiz
Moiz
ASKER
hey liebrand, i want to use this logic and apply it to columns so instead of rows i want to add columns with increment of the i value. let me know if this is possible
Dim row As Infragistics.WebUI.UltraWe bGrid.Ultr aGridRow
For i As Integer = 0 To 10
row = New Infragistics.WebUI.UltraWe bGrid.Ultr aGridRow(N ew String() {String.Format("MyCell{0}" , i)})
Me.WebCombo1.Rows.Add(row)
Next
Moiz
Dim row As Infragistics.WebUI.UltraWe
For i As Integer = 0 To 10
row = New Infragistics.WebUI.UltraWe
Me.WebCombo1.Rows.Add(row)
Next
Moiz
ASKER
sorry not to be too specific, I am talking about the ultrawebgrid not the webcombo.....
Moiz
Moiz
Open a new question...
ASKER