Hi,
i am using UltraWebGrid. i have added a valuelist on a cell. ValueList andOrValueList = new ValueList(); andOrValueList.ValueListItems.Add("And"); andOrValueList.ValueListItems.Add("Or"); e.Layout.Bands[0].Columns[0].ValueList = andOrValueList;
Now user can select a value from ValueList on clicking cell.
Issue:
when i select a value from valueList dropdown then ValueList is display on cell and cell is not updated. when i clicked on another cell then cell update.
i want that when i select a value from ValueList then cell is automatically update and valuelist should be hide.
please give me the suggestion that how can i achieve this functionality. its very urgent for me.
Thanks & Regard's
Sachin Kumar
I think your problem may not be with your event but with your drop down list/combo box. I use mostly 2003 .NET so you may have to make some modifications to use the syntax properly. I ran into the same problem where my page wasn't recognizing the event of a selected index being changed. So, for that specific dropdownlist in my case (maybe something different for you) I set it's AutoPostBack property/value to true. Here is my code take a glance, I am sure that this will help in someway. Though if this doesn't fix it, I am sure that what is happening is that your selected index change isn't firing, not the update cell.
dsInvest.Tables.Add("InvestorTable")
daInvest.SelectCommand =
New SqlClient.SqlCommand("SELECT inlCcd, invName, Investor FROM( " & vbCrLf & _
"SELECT DISTINCT('000-') inlCcd, 'All' invName, '000-'+'All' [Investor] " & vbCrLf & _
"UNION" & vbCrLf & _
"SELECT DISTINCT(inlCcd), invName, inlCcd+'-'+invName AS 'Investor' " & vbCrLf & _
"FROM amInvestorLoan " & vbCrLf & _
"JOIN dbo.amInvMaster " & vbCrLf & _
"ON amInvestorLoan.inlCcd = dbo.amInvMaster.invCd) x " & vbCrLf & _
"ORDER BY Investor ",
Me.cn)
daInvest.Fill(dsInvest.Tables("InvestorTable"))
ddlInvestor.DataSource = dsInvest.Tables("InvestorTable")
ddlInvestor.DataValueField = "inlCcd"
ddlInvestor.DataTextField = "Investor"
ddlInvestor.AutoPostBack =
True
Me.ddlInvestor.DataBind()
'Populates Investor cbo
UltraWebGrid_UpdateCell event fired only when grid cell update.
My Question:
when i select a value from valueList then UltraWebGrid_UpdateCell event not fired. after selected value, when i select another cell then UltraWebGrid_UpdateCell fired.
my requirment is, when i select value from valuelist then UltraWebGrid_UpdateCell should be fired.
its very urgent for me. please give me suggestion for the same.
Sachin,
I think this might be from the event that you are using. Try using the Private Sub UltraWebGrid_UpdateCell. I might not understand what you are asking, just an idea.