This is a migrated thread and some comments may be shown as answers.

Help me

1 Answer 38 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Tooraj
Top achievements
Rank 1
Tooraj asked on 10 Jul 2012, 02:02 PM
Hello
here is some of my problems in my web application:

1. why after loggin to the website it does not go to every user's associated default page?
   i have defined it in sitemap and i have used membership.

2. i have set an update query for sqldatasource and it works fine but after making columns which query parameters are
bound to them read only, the update does not work.

please help.

1 Answer, 1 is accepted

Sort by
0
Jayesh Goyani
Top achievements
Rank 2
answered on 10 Jul 2012, 06:25 PM
Hello,

Try with below code snippet.

set style in place of readonly mode.

protected void dgPassanger_ItemDataBound(object sender, GridItemEventArgs e)
        {
 if (e.Item.IsInEditMode && e.Item is GridEditableItem)
            {
                GridEditableItem item = e.Item as GridEditableItem;
                (item["ID"].Parent.Parent.Controls[0] as GridTableRow).Style.Add("display", "none");
            }
}


Thanks,
Jayesh Goyani
Tags
Grid
Asked by
Tooraj
Top achievements
Rank 1
Answers by
Jayesh Goyani
Top achievements
Rank 2
Share this question
or