Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > retrieving text from a selected data grid row cell...

Reply
Thread Tools

retrieving text from a selected data grid row cell...

 
 
Daniel Bass
Guest
Posts: n/a
 
      07-08-2003
this was working

Dim szMsgNumber = db_grid.SelectedItem.Cells(0).Text



until i changed the first column (at index 0) to a ASP:ButtonColumn from a
boundcolumn...



now it just returns blank text every time...



how do i retrieve text from a buttoncolumn cell??


 
Reply With Quote
 
 
 
 
Daniel Bass
Guest
Posts: n/a
 
      07-08-2003
Dim linkbtnMsgNumber As LinkButton =
db_grid.SelectedItem.Cells(0).Controls(0)

Dim szMsgNumber = linkbtnMsgNumber.Text

"Daniel Bass" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> this was working
>
> Dim szMsgNumber = db_grid.SelectedItem.Cells(0).Text
>
>
>
> until i changed the first column (at index 0) to a ASP:ButtonColumn from a
> boundcolumn...
>
>
>
> now it just returns blank text every time...
>
>
>
> how do i retrieve text from a buttoncolumn cell??
>
>



 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
get selected data from dropdownlist in data grid munther ASP .Net 2 09-12-2007 11:26 AM
keep selected row in grid view Mike ASP .Net 2 08-10-2007 04:44 PM
How to get a particular selected row ID from a grid view ..? Maheshkumar.R ASP .Net 1 08-12-2005 07:15 PM
ok I can do a totals row but how about a percentage row after each data row D ASP .Net Datagrid Control 0 05-23-2005 04:10 PM
How to add a new row to a datagrid with values of the selected row =?Utf-8?B?U3VyZXNo?= ASP .Net 1 11-22-2004 09:04 AM



Advertisments