Click here to Skip to main content
15,919,178 members
Home / Discussions / ASP.NET
   

ASP.NET

 
QuestionGridView & CheckBox Pin
comp_j27-Jul-09 4:18
comp_j27-Jul-09 4:18 
AnswerRe: GridView & CheckBox Pin
Blue_Boy27-Jul-09 4:22
Blue_Boy27-Jul-09 4:22 
GeneralRe: GridView & CheckBox Pin
comp_j27-Jul-09 8:39
comp_j27-Jul-09 8:39 
AnswerRe: GridView & CheckBox Pin
Abhijit Jana27-Jul-09 4:31
professionalAbhijit Jana27-Jul-09 4:31 
GeneralRe: GridView & CheckBox Pin
comp_j27-Jul-09 4:55
comp_j27-Jul-09 4:55 
GeneralRe: GridView & CheckBox Pin
Blue_Boy27-Jul-09 6:45
Blue_Boy27-Jul-09 6:45 
AnswerRe: GridView & CheckBox [modified] Pin
comp_j27-Jul-09 10:28
comp_j27-Jul-09 10:28 
AnswerRe: GridView & CheckBox Pin
Abhijit Jana27-Jul-09 10:39
professionalAbhijit Jana27-Jul-09 10:39 
comp_j wrote:
How do am I get selected row's data (Like ID)?

There is a class GridViewRow, on SelectedIndexChnaged event of Grid, Read the current Selected Row in GridViewRow, then you can read each and every column from it. Even you can read directly the data.

protected void GridView1_SelectedIndexChanged(object sender, EventArgs e)
   {
       int  ID= Int32.Parse(GridView1.Rows[GridView1.SelectedIndex].Cells[0].Text);
   }

Note : I assume, Cell[0] of Grid contain your ID

Hope this will help you Big Grin | :-D

Abhijit Jana | Codeproject MVP
Web Site : abhijitjana.net
Don't forget to click "Good Answer" on the post(s) that helped you.
View My Latest Article

AnswerRe: GridView & CheckBox Pin
bonypatel27-Jul-09 22:26
bonypatel27-Jul-09 22:26 
QuestionFixed table header Pin
indian14327-Jul-09 3:34
indian14327-Jul-09 3:34 
AnswerRe: Fixed table header Pin
Blikkies27-Jul-09 3:37
professionalBlikkies27-Jul-09 3:37 
GeneralRe: Fixed table header Pin
indian14327-Jul-09 19:42
indian14327-Jul-09 19:42 
AnswerRe: Fixed table header Pin
Abhishek Sur27-Jul-09 8:12
professionalAbhishek Sur27-Jul-09 8:12 
QuestionExecute LINQ query Pin
zeeShan anSari27-Jul-09 3:13
zeeShan anSari27-Jul-09 3:13 
AnswerRe: Execute LINQ query Pin
Tamer Oz27-Jul-09 4:18
Tamer Oz27-Jul-09 4:18 
GeneralRe: Execute LINQ query Pin
zeeShan anSari27-Jul-09 4:20
zeeShan anSari27-Jul-09 4:20 
GeneralRe: Execute LINQ query Pin
Tamer Oz27-Jul-09 4:25
Tamer Oz27-Jul-09 4:25 
QuestionPromp box in the center of screen Pin
deep727-Jul-09 3:09
deep727-Jul-09 3:09 
AnswerRe: Promp box in the center of screen Pin
Abhijit Jana27-Jul-09 3:35
professionalAbhijit Jana27-Jul-09 3:35 
GeneralRe: Promp box in the center of screen Pin
deep727-Jul-09 23:13
deep727-Jul-09 23:13 
AnswerRe: Promp box in the center of screen Pin
Blue_Boy27-Jul-09 3:37
Blue_Boy27-Jul-09 3:37 
GeneralRe: Promp box in the center of screen Pin
Abhijit Jana27-Jul-09 3:41
professionalAbhijit Jana27-Jul-09 3:41 
GeneralRe: Promp box in the center of screen Pin
Blue_Boy27-Jul-09 3:52
Blue_Boy27-Jul-09 3:52 
GeneralRe: Promp box in the center of screen Pin
Abhijit Jana27-Jul-09 3:54
professionalAbhijit Jana27-Jul-09 3:54 
GeneralRe: Promp box in the center of screen Pin
Blue_Boy27-Jul-09 3:57
Blue_Boy27-Jul-09 3:57 

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.