M
Mike
I have a gridview that has a button in the last cell of each row. I want to get the text from cell 1 for that row the button was clicked on.
So if my gridview looks like this:
N-12 BMW [select]
N-35 Mercedes [select]
if my user clicks row 2, I want to see Mercedes, How can I do that?
I have a buttonClick event for my select button, I'm trying to pull the values using the DataKeyName, but I keep getting 'object reference not set to an instance of an object.
here is what i'm trying
select_Click()
{
string make = grid1.SelectedDataKey.Values["CarMake"].toString();
}
any suggestions on how I can get the cell 1 text for the selected row within my Select_Click()?
So if my gridview looks like this:
N-12 BMW [select]
N-35 Mercedes [select]
if my user clicks row 2, I want to see Mercedes, How can I do that?
I have a buttonClick event for my select button, I'm trying to pull the values using the DataKeyName, but I keep getting 'object reference not set to an instance of an object.
here is what i'm trying
select_Click()
{
string make = grid1.SelectedDataKey.Values["CarMake"].toString();
}
any suggestions on how I can get the cell 1 text for the selected row within my Select_Click()?