c# - .Net How To Display The Column Value Belonging To That Row Only In A Text Box After Selecting The Value In Combo Box In Parse.com -
c# - .Net How To Display The Column Value Belonging To That Row Only In A Text Box After Selecting The Value In Combo Box In Parse.com -
i using parse.com manage grab 1 column of info parse database displayed onto combobox 1 person posted code on parse blog. trying when user select value in combobox should display column belongs selected value.
the keys in parse.com database binlocation(values in key display @ combobox) , binheight(values in key display 1 time binlocation selected)
the next code of selectedindexchanged:
parsequery<parseobject> query = parseobject.getquery("irisbin"); ienumerable<parseobject> res = await query.findasync(); list<int> list = new list<int>(); foreach (var in res) { var s = i.get<int>("binheight"); list.add(s); cbselectarea.items.add(s).tostring(); tbmaxvolume.text = s.tostring(); if (cbselectarea.selectedindex == i.get<int>("binheight")) { } else { } } double maxheight = convert.todouble(tbmaxvolume.text); double currentvol = convert.todouble(tbcurrentvolume.text); string results = checklevel(currentvol, maxheight); lblalertmessage.text = results;
the next 1 method displayed combobox:
parsequery<parseobject> query = parseobject.getquery("irisbin"); ienumerable<parseobject> res = await query.findasync(); list<string> list = new list<string>(); foreach (var in res) { var s = i.get<string>("binlocation"); list.add(s); cbselectarea.items.add(s).tostring(); }
adding combobox
parsequery<parseobject> query = parseobject.getquery("bininformation"); ienumerable<parseobject> res = await query.findasync(); list<string> list = new list<string>(); foreach (var in res) { var s = i.get<string>("binlocation"); list.add(s); } (int intcounter = 0; intcounter < list.count; intcounter++) { object obj = list[intcounter]; cbselectarea.items.add(obj); }
selectindexchanged
var query = gamescore in parseobject.getquery("bininformation") gamescore.get<string>("binlocation") == cbselectarea.text select gamescore; ienumerable<parseobject> results = await query.findasync(); foreach (var in results) { var s = i.get<int>("binmaxcapacity"); tbmaxvolume.text = s.tostring(); }
c# .net combobox parse.com
Comments
Post a Comment