Questions tagged [datakey]

31 questions
1
vote
2 answers

When checkbox checked get datagrid value using jquery

I have a checkbox template field within a gridview in c#, this field also has a hidden field with the id behind it. I want to use jQuery to raise an event on click of the checkbox to grab a datakey value so I can run a query through jQuery and add…
Jason
  • 59
  • 1
  • 2
  • 10
0
votes
1 answer

Gridview Rowcommand Datakey gives index out of range error

I have added a button named reserve to my gridview, and when I click it I want do some modification on the gridview, however it gives index out of range error. Below is rowCommand method: protected void GridView1_RowCommand(object sender,…
HOY
  • 1,067
  • 10
  • 42
  • 85
0
votes
1 answer

jQuery Change image depending on the link data-key in each parent

I have a section 2 blocks: one - with 3 images, second - with 3 links. Each image has it's own class (class=".img1") that is connected to a definite link with datakey=".img1". When I hover over each link the definite image is being shown. The…
Natalya
  • 123
  • 2
  • 12
0
votes
1 answer

ASP.Net Gridview Not Allowing Rows To be Selected After Certain Value In DataKey

I've been utilizing what I call, "drag, drop and configure" programming for years to create very simple ASP.net forms to collect data for my organization. Basically, I'll drag a datasource into my design view, configure it, and then I'll drag a…
0
votes
1 answer

Flutter data["dataKey"] How can I return one specific argument?

A value of type 'Object?' can't be assigned to a variable of type 'Map'. Its a Routing error Im referring to this question. How can I return one specific argument? data["dataKey"] just gives me all arguments.
0
votes
1 answer

How can i access Page.FormViewDetails.DataKey?

I need to get the selected item from DataList in ASPNET in a general logging procedure not knowing the control name or datakey name (can be different from page to page). The only place I can find this data seems to in Page.FormViewDetails.DataKey? I…
Jesper
  • 1
  • 3
0
votes
1 answer

Telerik/radgrid Equivalent (Find row items/values)?

Does anyone know the Telerik/radgrid equivalent of the following statement? e.InputParameters["id"] = Convert.ToString(myRadgrid.DataKeys[myradgrid.SelectedIndex].Value); I'm trying to find the row items/values, and haven't been able to figure…
0
votes
1 answer

Javascript 30 "Drum kit" console.log Issue

I'm doing the JavaScript 30 and I have an issue with the beginning of the JavaScript Drum Kit. I have followed the code exactly, but I seem to have an issue with the the first fews lines of JavaScript in the program. I need it to console.log
R Gao
  • 19
  • 1
  • 7
0
votes
1 answer

In gridview Datakey field contains double value but retutns only integer part,how to get complete double value

I'm having Gridview in which two columns I want to hide but need to acces their value so I keep them in dataKey out of these two datakey field one is application fees..which contains values in double format, now I want these values for…
shweta
  • 319
  • 2
  • 8
  • 21
0
votes
1 answer

ListView in ASP.NET and DataKeyNames

I have a ListView, which is bound with a list of 'A', which looks like this: Class A Property Id as Integer Property TestStringA as String Property B as B End Class Class B Property Id as Integer Property TestStringB as…
thbaan
  • 43
  • 6
0
votes
2 answers

When using a GridView, SelectedIndex is always 0 when using custom select button

When clicking the select button in gvSquid2, x gets a valid and correct value. When clicking the select button in gvSquid, I get an ArgumentOutOfRange Exception because gv.SelectedIndex=0. Additionally, gv.SelectedDataKey is null. How do I get…
0
votes
1 answer

Singular data-keys between application and database?

Is there a paradigm in which I can change a data-key name in one place and one place only, and have it properly be dealt with by both the application and database? I have resorted most recently to using class constants to map to database field…
hlomas
  • 21
  • 2
0
votes
1 answer

what's wrong with DataKeys[e.Item.ItemIndex].Values

I am using datalist to show some data. in code bahin, I need datakey value: protected void dlT_ItemDataBound(object sender,…
Mike Long
  • 363
  • 4
  • 16
0
votes
2 answers

DataKeyNames for different tables with different primary key names

I'm wondering if there is a way to use datakeynames to access the primary keys of different tables if those primary key names are different in those tables. For example, I have a table called Table1 and Table2 where the primary keys are Table1ID and…
Kevin
  • 3,209
  • 9
  • 39
  • 53
0
votes
2 answers

Programmatically Add a Datakey to an Existing Set of DataKeys

I have a GridView that has a few datakeys. Under a specific set of circumstances, I need to add an additional datakey from the code behind during the page's Load event. How does one programmatically add a datakey to an existing set of datakeys in a…
Matt Hanson
  • 3,458
  • 7
  • 40
  • 61