Ask a Question related to ASP.NET Data Grid Control, Design and Development.
-
Sean #1
how to get datagrid item index from DataKeyField value?
Can I not use loop? Is it a simple way to do it? Thanks.
Sean Guest
-
How to get the DataKeyField in the DataGrid ?
I set the DataKeyField in a DataGrid , and an EditCommand , when I click the EditCommand , I want to get the row's DataKeyField , and redirect to... -
Datagrid DataKeyField and Webservice Proxy Objects
Hi all, I have a web service that returns me an array of objects. When I try to set this array as the datasource for a Datagrid and call DataBind... -
Change style of a single row of the item list of datagrid, based on a field value of current item...
Sorry for the long subject guys, but I don't know how better I can resume the matter... Anyway, I have my datagrid showing items of an order. I... -
DataGrid1.DataKeys[e.Item.ItemIndex] array index out of bounds
Folks, Can someone please explan why this this line of code works fine when executed within an ItemCommand (that is, once the data are fully... -
Finding Row Index for an item in a datagrid.
protected void SearchRowIndex() { string _RowIndex = null; foreach(DataGridItem di in dgd1.Items) { -
Arthur #2
how to get datagrid item index from DataKeyField value?
set your datakey field--> DataKeyField="ID"
Dim ID As Integer = DataGrid1.DataKeys(e.Item.ItemIndex)
will place the itemIndex (in this case the ID) into a
variable with the same name
Arthur
>-----Original Message-----
>Can I not use loop? Is it a simple way to do it? Thanks.
>
>
>.
>Arthur Guest



Reply With Quote

