Hi,
I have a DataGrid, with 7 columns. The first is the Product ID, the second is the Category ID, the third the product title, the fourth is the product description, the fifth is the gallery description, the sixth is the additional information and finally the seventh is the edit column. I am trying to create an update command that when in edit mode allow me to change the product title and then run and SQL update to change the values in the database. The problem I am having is that I am having problems grabbing the data from the table. Here is my code:
void dgrdProducts_UpdateCommand( Object sender, DataGridCommandEventArgs e )
{
int intProductID;
string strProductDescription;
string strGalleryDescription;
string strAdditionalInformation;
TextBox strProductTitle=(TextBox)e.Item.Cells[2].Controls[0];
intProductID = (int)dgrdProducts.DataKeys[ ...
Go to the complete details ...