Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
49
How to grab a Cell value based on SelectedRows selection
posted

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 call
Dictionary<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.

Parents Reply Children
No Data