I have a grid and I am using an insert command to enter records to an underneath table.
How can I automatically insert a column value (for example user_id) to a column?
I have made this column read only so that the user enters some values but he doesn't see that user_id column.
I get the user_id using the following code :
string UserID; //globally declare the UserId |
protected void RadGrid1_PreRender(object sender, EventArgs e) |
{ |
MembershipUser myObject = Membership.GetUser(); |
UserID = myObject.ProviderUserKey.ToString(); |
} |