.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
 
Sign In
Register
 
Win Surprise Gifts!!!
Congratulations!!!


Top 5 Contributors of the Month
david stephan

Home >> Forum >> ASP.Net >> Post New QuestionBookmark and Share Subscribe to Forum

Edit GridView row in another window

Posted By: priya     Posted Date: March 01, 2011    Points:2   Category :ASP.Net
Hi,

How to edit gridview row in another window or aspx page? how to pass the row information in another page?

any help would be appreciated.

Responses
Author: kamlesh             
Posted Date: March 01, 2011     Points: 20   

Create New Form

MailDetailDTO _mailDetailDTO; // suppose this is my class for storing the mail value

public frmMail(MailDetailDTO MailDetail)
{
InitializeComponent();
_mailDetailDTO = MailDetail;
}

public frmMail()
{
InitializeComponent();
}
private void frmMail_Load(object sender, EventArgs e) // New Form Load Event
{
try
{
lblMailSubject.Text = _mailDetailDTO.MailSubject; // Call that all values on lable which present on new form
lblTime.Text = "Sent On:" + _mailDetailDTO.MailDate.ToString("d");
lblMailBcc.Text = "Bcc:" + _mailDetailDTO.MailBcc;
lblMailCc.Text = "Cc:" + _mailDetailDTO.MailCc;
lblMailFrom.Text = "From:" + _mailDetailDTO.MailFrom;
lblMailSize.Text = "Size:" + _mailDetailDTO.MailSize;
lblMailTo.Text = "To:" + _mailDetailDTO.MailTo;
if (_mailDetailDTO.HasAttechment)
{
pnlAttechment.Visible = true;
List<Attachment> AttachmentList = MailService.GetAttachmentList(_mailDetailDTO.ID);
for (int i = 0; i < AttachmentList.Count; i++)
{
lstAttachment.Items.Add(AttachmentList[i].FileName);
}
}
else
{
pnlAttechment.Visible = false;
}
}
catch (Exception ex)
{
MessageBox.Show(ex.Message, "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
clsError.LogError(ex);
}

}

Thanks And Regards.
Kamlesh Nikam
Author: Maverick             
Posted Date: March 01, 2011     Points: 20   

You can create a querystring having all the parameter you want to edit.
Hope this helps.

Maverick

Thanks,
Maverick
Author: shiv             
Posted Date: March 02, 2011     Points: 20   

convert selected value in templete field like this
<asp:LinkButton ID="LinkButton1" runat="server" CausesValidation="false"
CommandName="cmdBind" ForeColor="Blue" Text='<%# Eval("Forum_Title") %>'></asp:LinkButton>


and on command name cmdBind u find your send data...
then pass it through and update another gridview ..........








Post Reply

You must Sign In To post reply
 
 
Find more Forum Questions on C#, ASP.Net, Vb.Net, SQL Server and more Here
Quick Links For Forum Categories:
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  OOPs  SilverlightIISJQuery
JavaScript/VBScriptBiztalkWPFPatten/PracticesWCFOthers
www.DotNetSpark.comUnAnsweredAll

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend