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

DataKeyNames

1 Answer 83 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Atchut
Top achievements
Rank 1
Atchut asked on 09 May 2012, 02:05 PM
Hello,
I never used DataKeyNames and dont know the importance of these datakeyNames.


Can anyone explain how it works and what is GroupLoadMode="Client" in the below code.

 <MasterTableView CellPadding="4" DataKeyNames="IsSelected" AutoGenerateColumns="False" Width="100%" GroupLoadMode="Client"> 

1 Answer, 1 is accepted

Sort by
0
Accepted
Shinu
Top achievements
Rank 2
answered on 09 May 2012, 02:15 PM
Hi,

DataKeyNames property is used to specify the field or fields that represent the primary key of the data source.
The data key names/values are stored in the ViewState so they are available at any moment after grid have been data-bound, after postbacks, etc. This collection is used when editing data, and for automatic relations when binding an hierarchical grid

GroupLoadMode="Client" expands groups client-side, without a postback. This means that the data for all groups, whether they are expanded or not, must be loaded on the client.Please check this link for more reference.

Thanks,
Shinu.
Tags
Grid
Asked by
Atchut
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Share this question
or