I have a WebDataGrid bound server side by a Data Dictionary.
//This works fine, obviously not something you could test based on my Data layer function callDictionary<string, string> oOwners = MbxData.GetMbxOwners(MbxOwner);igWebGridOwners.DataSource = oOwners;igWebGridOwners.DataBind();
The Grid populates with RowSelector Column, Email Column and DisplayName Column
What i'm trying to have happen is a user selects a row then clicks DELETE. I already have the code written to Delete, but my function needs the value of the Email column in order to process.
protected void btnDeleteOwner_Click(object sender, EventArgs e){
if (igWebGridOwners.Behaviors.Selection.SelectedRows.Count > 0) {
//Identify Owner's Email, call Delete function, refresh Grid
}
So after much sudocode and explanation, How do I get the value of a cell when using SelectedRow, or is there another approach I should take?
Thanks!
Also, this community really is pretty great, i've found a lot of useful information on it.
Hey,
Use igWebGridOwners.Behaviors.Selection.SelectedRows[0].Items[0].Text or Value. Should be what you're looking for.
regards,
David Young
David,
I'm embarrassed.
Thank you for the help!
hi,
do you fixed the this?
now i have the same problem