Click here to Skip to main content
15,903,743 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralSingle instance of Office application in Web Pin
Elena200621-Jan-08 19:34
Elena200621-Jan-08 19:34 
GeneralRe: Single instance of Office application in Web Pin
N a v a n e e t h21-Jan-08 19:44
N a v a n e e t h21-Jan-08 19:44 
GeneralGridview with checkbox column Pin
Anupbala21-Jan-08 19:19
Anupbala21-Jan-08 19:19 
GeneralRe: Gridview with checkbox column Pin
N a v a n e e t h21-Jan-08 19:26
N a v a n e e t h21-Jan-08 19:26 
GeneralRe: Gridview with checkbox column Pin
Anupbala21-Jan-08 19:48
Anupbala21-Jan-08 19:48 
GeneralRe: Gridview with checkbox column Pin
N a v a n e e t h21-Jan-08 19:59
N a v a n e e t h21-Jan-08 19:59 
GeneralRe: Gridview with checkbox column Pin
Anupbala21-Jan-08 20:27
Anupbala21-Jan-08 20:27 
GeneralRe: Gridview with checkbox column Pin
bokuceres21-Jan-08 22:28
bokuceres21-Jan-08 22:28 
is there any private key or unique table's field in the record?
if there is any unique field in data that you bind to gridview than assign it to hiddenfield control in your gridview (like you put checkbox control in your gridview).

Arraylist arrID = new arraylist();
foreach (GridViewRow gv in gv1.Rows)
{
  CheckBox cb = (CheckBox)gv.FindControl("chkSelect");
  if (cb.Checked)
  {
    HiddenField hf = (HiddenField)gv.FindControl("HiddenFieldNames");
    arrID.add(hf.value);
  }
}

DataTable dbTable = QueryBackToDB(arrID);


then you can query arrID to your database then ..... walah...there's your selected record (dbTable in code example, above).

this will query back to your database again, but at least, the data will be reliable.


you can always try to get the index where your checkbox is checked
try to loop with [for], and don't with [for each] so you can get the index easily. then you match with the index from your search with the index in datatable that you bind to gridview.

i hope this can help you.
GeneralRe: Gridview with checkbox column Pin
Anupbala22-Jan-08 0:49
Anupbala22-Jan-08 0:49 
GeneralRe: Gridview with checkbox column Pin
bokuceres23-Jan-08 14:38
bokuceres23-Jan-08 14:38 
GeneralRe: Gridview with checkbox column Pin
Anupbala23-Jan-08 19:16
Anupbala23-Jan-08 19:16 
GeneralRe: Gridview with checkbox column Pin
bokuceres23-Jan-08 20:00
bokuceres23-Jan-08 20:00 
GeneralRe: Gridview with checkbox column Pin
Elayaraja Sambasivam22-Jan-08 3:27
Elayaraja Sambasivam22-Jan-08 3:27 
GeneralProblem Related to Dundas chart Pin
Aavesh Agarwal21-Jan-08 18:44
Aavesh Agarwal21-Jan-08 18:44 
Questioncan we use two sitemap in a project Pin
mohd imran abdul aziz21-Jan-08 18:17
mohd imran abdul aziz21-Jan-08 18:17 
AnswerRe: can we use two sitemap in a project Pin
N a v a n e e t h21-Jan-08 19:17
N a v a n e e t h21-Jan-08 19:17 
QuestionNeed some suggestions in ASP.NET Pin
Jats_4ru21-Jan-08 18:12
Jats_4ru21-Jan-08 18:12 
GeneralRe: Need some suggestions in ASP.NET Pin
Abhijit Jana21-Jan-08 18:18
professionalAbhijit Jana21-Jan-08 18:18 
NewsRe: Need some suggestions in ASP.NET Pin
Venkatesh Mookkan21-Jan-08 18:35
Venkatesh Mookkan21-Jan-08 18:35 
GeneralRe: Need some suggestions in ASP.NET Pin
N a v a n e e t h21-Jan-08 19:09
N a v a n e e t h21-Jan-08 19:09 
GeneralRe: Need some suggestions in ASP.NET Pin
pmarfleet21-Jan-08 19:42
pmarfleet21-Jan-08 19:42 
GeneralRe: Need some suggestions in ASP.NET Pin
N a v a n e e t h21-Jan-08 19:47
N a v a n e e t h21-Jan-08 19:47 
QuestionDropDownList Pin
senthilsstil21-Jan-08 17:58
senthilsstil21-Jan-08 17:58 
Generalquestion about Visual STudio 2008 Pin
orsini21-Jan-08 9:37
orsini21-Jan-08 9:37 
GeneralRe: question about Visual STudio 2008 Pin
sulabh202021-Jan-08 18:27
sulabh202021-Jan-08 18:27 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.