Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
DataGrid Button Text
Message
General information
Forum:
ASP.NET
Category:
The Mere Mortals .NET Framework
Title:
DataGrid Button Text
Miscellaneous
Thread ID:
00840332
Message ID:
00840332
Views:
50
Having a brain fart this morning :(

I need to take the text of a button in a datagrid. Grid could be sorted so I need it's data that is displayed

Button Click fires:
public void ShowModel(object sender, DataGridCommandEventArgs e) { string lcCommand = e.CommandName; if (lcCommand != "sort")
{
// Code here for # in the grid used to go against ds.
// no longer works with sort buttons on top of grid.
// ____________
// string lcstring = e.Item.DataSetIndex.ToString();
// int lnstring = Convert.ToInt32(lcstring);

New code here, but it brings up control info and not text on control. string lctr = e.CommandSource.ToString();

Any ideas?

TIA



Stephen Russell
S.R. & Associates
Memphis TN 38115
901.246-0159
Next
Reply
Map
View

Click here to load this message in the networking platform